-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSL3_WRITE_PENDING error #13
Comments
This problem is still present in the current version. StackOverflow question: https://stackoverflow.com/questions/12042932/pyapns-ssl3-write-pending-error A stacktrace for reference:
On line 15 of "/home/username/public_html/py/app/views.py" is this:
On line 293 of "/usr/local/lib/python2.7/dist-packages/apns.py" is this:
On line 141 of "/usr/local/lib/python2.7/dist-packages/apns.py" is this:
On line 231 of "/usr/lib/python2.7/ssl.py" is this:
|
Was this ever fixed in another commit? |
Also just remembered I saw @djacobs comment on the same issue in @simonwhitaker's old repo here back in January too: #23. Looks like this wasn't ever officially merged in as a fix in that repo either. |
The bug & fix aren't well documented here, and the merge isn't clean. I am happy to discuss more if anyone is willing to summarize all the content in one place, but I'm generally going to be very conservative about these kinds of merges. |
@djacobs I think the answerer in https://stackoverflow.com/questions/12042932/pyapns-ssl3-write-pending-error has a pretty good summary. Does that help? |
It's helpful! But for me to accept the commit (many people use this Thanks, |
What are the other tickets? (I propose we can ignore those in other repos.) I can take a stab at organizing. |
I am able to reproduce this right now. What information can I provide that would help? Below is what I am seeing in the logs. I haven't isolated a set of specific procedures to reproduce -- but a rough summary would be -- run pyapns and after a certain amount of time eventually this appears in the logs after sending hundreds to thousands of push notifications. apns: 2014-08-05 16:16:50,659 - INFO - 505 - sending notification with id:674199962 to APNS failed: <class 'ssl.SSLError'>: [Errno 1] _ssl.c:1296: error:1409F07F:SSL routines:SSL3_WRITE_PENDING:bad write retry |
Is this your fork: https://github.com/dZkF9RWJT6wN8ux/PyAPNs? It looks like Thanks! On Tue, Aug 5, 2014 at 10:13 AM, Alex Butum notifications@github.com
|
@dZkF9RWJT6wN8ux Any luck? |
After some time service using PyAPNS is run in background I start to get such error:
return self._sslobj.write(data)
SSLError: [Errno 1] _ssl.c:1217: error:1409F07F:SSL routines:SSL3_WRITE_PENDING:bad write retry
After restarting service everythong works perfect. I use send_notification method for sending messages to all registered devices in simple for cycle.
The text was updated successfully, but these errors were encountered: