[Twisted-Python] Twisted hangs when using pyapns

Ni Wesley nispray at gmail.com
Tue Oct 14 02:06:13 MDT 2014


Hi all,
   I don't know if here is the right place.
I hit a problem with pyapns which is based on twisted.

So, I get code from our parter and setup up env involving interacting with
APNS for IOS pushing work.

I hit the problem that twisted hangs after a while's idle, I mean, when I
start twisted with command:
twistd -r epoll web --class=pyapns.server.APNSServer --port=7077

Then, raise an notification to IOS device by pyapns(
https://github.com/samuraisam/pyapns),it's OK.

However, if I let the system alone for a while, then, new raised
notifications are all failed, what's more, if now I kill twisted process,
and restart with the above command again, push operations are successful
again.

I use python2.7 and twisted 14.0.0 on Redhat6.4.

So, anyone has hit this problem?

Thanks.
Wesley
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20141014/a32f593e/attachment.html>


More information about the Twisted-Python mailing list