You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feedback for the sandbox app was called hourly by the client, so 3 prior attempts successful, when the timeout from Apple was handled the following appeared in the log.
The connection to the calling client requesting the feedback check is not disconnected and the connection can hang indefinitely if the client does not timeout (I know as this is a bug in my client code).
Once the client is disconnected, pyapns appears to continue to run without issue.
2013-10-16 17:26:05-0400 [HTTPChannel,18,10.1.1.242] APNSService read (connecting)
2013-10-16 17:26:05-0400 [HTTPChannel,18,10.1.1.242] APNSClientContextFactory ssl_cert_file=XXXXX.pem
2013-10-16 17:26:05-0400 [HTTPChannel,18,10.1.1.242] Starting factory <pyapns.server.APNSFeedbackClientFactory instance at 0x245e050>
2013-10-16 17:26:05-0400 [HTTPChannel,18,10.1.1.242] APNSFeedbackClientFactory startedConnecting
2013-10-16 17:26:05-0400 [Uninitialized] feedbackHandler connectionMade
2013-10-16 17:26:20-0400 [-] "errback in apns-feedback-read : [Failure instance: Traceback (failure with no frames): <type 'exceptions.Exception'>: Feedbcak fetch timed out after 15 seconds\n]"
2013-10-16 17:26:23-0400 [APNSFeedbackHandler (TLSMemoryBIOProtocol),client] feedbackHandler connectionLost [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionDone'>: Connection was closed cleanly.
]
2013-10-16 17:26:23-0400 [APNSFeedbackHandler (TLSMemoryBIOProtocol),client] Unhandled Error
Traceback (most recent call last):
File "/usr/lib64/python2.6/site-packages/twisted/application/app.py", line 323, in runReactorWithLogging
reactor.run()
File "/usr/lib64/python2.6/site-packages/twisted/internet/base.py", line 1192, in run
self.mainLoop()
File "/usr/lib64/python2.6/site-packages/twisted/internet/base.py", line 1204, in mainLoop
self.doIteration(t)
File "/usr/lib64/python2.6/site-packages/twisted/internet/epollreactor.py", line 372, in doPoll
log.callWithLogger(selectable, _drdw, selectable, fd, event)
--- ---
File "/usr/lib64/python2.6/site-packages/twisted/python/log.py", line 88, in callWithLogger
return callWithContext({"system": lp}, func, _args, *_kw)
File "/usr/lib64/python2.6/site-packages/twisted/python/log.py", line 73, in callWithContext
return context.call({ILogContext: newCtx}, func, _args, *_kw)
File "/usr/lib64/python2.6/site-packages/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, _args, *_kw)
File "/usr/lib64/python2.6/site-packages/twisted/python/context.py", line 81, in callWithContext
return func(args,*kw)
File "/usr/lib64/python2.6/site-packages/twisted/internet/posixbase.py", line 614, in _doReadOrWrite
self._disconnectSelectable(selectable, why, inRead)
File "/usr/lib64/python2.6/site-packages/twisted/internet/posixbase.py", line 260, in _disconnectSelectable
selectable.connectionLost(f)
File "/usr/lib64/python2.6/site-packages/twisted/internet/tcp.py", line 485, in connectionLost
self._commonConnection.connectionLost(self, reason)
File "/usr/lib64/python2.6/site-packages/twisted/internet/tcp.py", line 299, in connectionLost
protocol.connectionLost(reason)
File "/usr/lib64/python2.6/site-packages/twisted/protocols/tls.py", line 466, in connectionLost
ProtocolWrapper.connectionLost(self, reason)
File "/usr/lib64/python2.6/site-packages/twisted/protocols/policies.py", line 125, in connectionLost
self.wrappedProtocol.connectionLost(reason)
File "/home/bdavis/github/pyapns/pyapns/server.py", line 113, in connectionLost
self.deferred.callback(self.io.getvalue())
File "/usr/lib64/python2.6/site-packages/twisted/internet/defer.py", line 380, in callback
self._startRunCallbacks(result)
File "/usr/lib64/python2.6/site-packages/twisted/internet/defer.py", line 481, in _startRunCallbacks
raise AlreadyCalledError
twisted.internet.defer.AlreadyCalledError:
The text was updated successfully, but these errors were encountered:
Running v50 branch.
2013-10-16 11:54:38-0400 [-] twistd 13.1.0 (/usr/bin/python 2.6.6) starting up.
Feedback for the sandbox app was called hourly by the client, so 3 prior attempts successful, when the timeout from Apple was handled the following appeared in the log.
The connection to the calling client requesting the feedback check is not disconnected and the connection can hang indefinitely if the client does not timeout (I know as this is a bug in my client code).
Once the client is disconnected, pyapns appears to continue to run without issue.
2013-10-16 17:26:05-0400 [HTTPChannel,18,10.1.1.242] APNSService read (connecting)
2013-10-16 17:26:05-0400 [HTTPChannel,18,10.1.1.242] APNSClientContextFactory ssl_cert_file=XXXXX.pem
2013-10-16 17:26:05-0400 [HTTPChannel,18,10.1.1.242] Starting factory <pyapns.server.APNSFeedbackClientFactory instance at 0x245e050>
2013-10-16 17:26:05-0400 [HTTPChannel,18,10.1.1.242] APNSFeedbackClientFactory startedConnecting
2013-10-16 17:26:05-0400 [Uninitialized] feedbackHandler connectionMade
2013-10-16 17:26:20-0400 [-] "errback in apns-feedback-read : [Failure instance: Traceback (failure with no frames): <type 'exceptions.Exception'>: Feedbcak fetch timed out after 15 seconds\n]"
2013-10-16 17:26:23-0400 [APNSFeedbackHandler (TLSMemoryBIOProtocol),client] feedbackHandler connectionLost [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionDone'>: Connection was closed cleanly.
]
2013-10-16 17:26:23-0400 [APNSFeedbackHandler (TLSMemoryBIOProtocol),client] Unhandled Error
Traceback (most recent call last):
File "/usr/lib64/python2.6/site-packages/twisted/application/app.py", line 323, in runReactorWithLogging
reactor.run()
File "/usr/lib64/python2.6/site-packages/twisted/internet/base.py", line 1192, in run
self.mainLoop()
File "/usr/lib64/python2.6/site-packages/twisted/internet/base.py", line 1204, in mainLoop
self.doIteration(t)
File "/usr/lib64/python2.6/site-packages/twisted/internet/epollreactor.py", line 372, in doPoll
log.callWithLogger(selectable, _drdw, selectable, fd, event)
--- ---
File "/usr/lib64/python2.6/site-packages/twisted/python/log.py", line 88, in callWithLogger
return callWithContext({"system": lp}, func, _args, *_kw)
File "/usr/lib64/python2.6/site-packages/twisted/python/log.py", line 73, in callWithContext
return context.call({ILogContext: newCtx}, func, _args, *_kw)
File "/usr/lib64/python2.6/site-packages/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, _args, *_kw)
File "/usr/lib64/python2.6/site-packages/twisted/python/context.py", line 81, in callWithContext
return func(args,*kw)
File "/usr/lib64/python2.6/site-packages/twisted/internet/posixbase.py", line 614, in _doReadOrWrite
self._disconnectSelectable(selectable, why, inRead)
File "/usr/lib64/python2.6/site-packages/twisted/internet/posixbase.py", line 260, in _disconnectSelectable
selectable.connectionLost(f)
File "/usr/lib64/python2.6/site-packages/twisted/internet/tcp.py", line 485, in connectionLost
self._commonConnection.connectionLost(self, reason)
File "/usr/lib64/python2.6/site-packages/twisted/internet/tcp.py", line 299, in connectionLost
protocol.connectionLost(reason)
File "/usr/lib64/python2.6/site-packages/twisted/protocols/tls.py", line 466, in connectionLost
ProtocolWrapper.connectionLost(self, reason)
File "/usr/lib64/python2.6/site-packages/twisted/protocols/policies.py", line 125, in connectionLost
self.wrappedProtocol.connectionLost(reason)
File "/home/bdavis/github/pyapns/pyapns/server.py", line 113, in connectionLost
self.deferred.callback(self.io.getvalue())
File "/usr/lib64/python2.6/site-packages/twisted/internet/defer.py", line 380, in callback
self._startRunCallbacks(result)
File "/usr/lib64/python2.6/site-packages/twisted/internet/defer.py", line 481, in _startRunCallbacks
raise AlreadyCalledError
twisted.internet.defer.AlreadyCalledError:
The text was updated successfully, but these errors were encountered: