samuraisam/pyapns — pull request #59 by bdavissl (2013-10-16 15:17:22+00:00)
Title: Apple timed disconnect

New to python and twisted, but attempted to monitor the connection time of each APNSService. If the connection time is greater than an hour, force a reconnection prior to attempting to write.

https://github.com/samuraisam/pyapns/issues/58

Using python 2.6 which is why total_seconds() was not used for the calculation.