added enhanced format support using non-blocking socket. - #25
Conversation
There was a problem hiding this comment.
Shouldn't the identifier and the expiry variables be used here?
There was a problem hiding this comment.
I looked through a similar pull request here:
#21
I suppose ageron is okay with the fact that we are using non-blocking socket here..
dfujiwara
commented
Sep 10, 2013
Just curious, but what's the status of this pull request? |
djacobs
commented
Sep 10, 2013
Hey - this actually predates me managing this library and so I missed it. I'll be able to take a look next week. Thanks. |
thetylerhayes
commented
Mar 10, 2014
djacobs
commented
Mar 13, 2014
@thetylerhayes Since these merges introduce conflicts I have to review them before I merge. I will make time for that soon. |
There was a problem hiding this comment.
Hi, I am trying to get enhanced message with error-response, too.
if select.select here with given timeout = 0s, it often get NO APNS's error-response in time,
when I set to 0.3s it got 90% of error-response, however, it's not guarantee 100% to get error-response for every failed notification, the network connection might also be a factor of delayed time.
Now I am trying to implement using another thread to constantly monitor the read descriptor and response to main thread for further handling. Refering to solution concept: http://redth.info/the-problem-with-apples-push-notification-ser/
ExplodingCabbage
commented
Jan 26, 2016
I think this was obsoleted by #71 and can be closed? |
djacobs
commented
Jan 26, 2016
I think so, @ExplodingCabbage |
ExplodingCabbage
commented
Jan 26, 2016
Make it so, then? |
added enhanced format support using non-blocking socket.
since for python 2.5 nonblocking ssl socket is not possible with standard library, enhanced format is only supported for python > 2.5