> On Oct 14, 2014, at 6:27 PM, Ni Wesley <[email protected]> wrote:
> 
> Hi,
>    The code is from our partner, so currently I won't change their code until 
> I address this issue.
> The used pyapns code is here:  https://github.com/samuraisam/pyapns <>
> And start twisted service by command :  twistd -r epoll web 
> --class=pyapns.server.APNSServer --port=7077 <>
> Could you please help have a look?

OK, you made me curious ;).

I looked through the code, and as it stands, I doubt my original hypothesis (a 
threading problem) is correct.  Threads are used only in the client talking to 
the pyapns server, not the pyapns server's client talking to APNS, so they're 
probably not interfering with it.

As far as I can tell, the ReconnectingClientFactory is set up properly.  Have 
you looked at the logs?  The one possibility I can think of just from examining 
the code is that the log messages before calling up to 
ReconnectingClientFactory.clientConnectionLost are raising an exception, 
causing the reconnection not to proceed.  That would most likely show a 
traceback in the logs, though.

<https://github.com/samuraisam/pyapns/blob/master/pyapns/server.py#L157-L164 
<https://github.com/samuraisam/pyapns/blob/master/pyapns/server.py#L157-L164>>

Any clue?

-glyph

_______________________________________________
Twisted-Python mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to