samuraisam/pyapns — pull request #61 by bdavissl (2013-11-11 15:57:05+00:00)
Title: Fix for leaking file descriptor issue

Add call to stopTrying on the APNSClientFactory (ReconnectingClientFactory) in the timed
disconnect portion of the code. If this call is not made, the reconnecting code will
reconnect to Apple and the connection is left unreferenced. This can cause an issue
with 'Too many open files'.

Tracked the connections to APNS via:
ps aux |grep pyapns.tac | grep -v grep | awk '{print $2}' | /usr/bin/xargs /usr/sbin/lsof -p