rapns icon indicating copy to clipboard operation
rapns copied to clipboard

Feature Request: Read errors from APNS socket asynchronously

Open jefflopes opened this issue 11 years ago • 1 comments

Having check_for_errors enabled is a huge performance hit. Would it be possible to read errors from the socket in such a way that doesn't block further sending? You would need to keep track of the order in which notifications were sent, because in the event of a disconnect and subsequent read from the socket, the failed notification might not be the last one sent and something that was previously marked delivered might need to be changed to failed.

PushSharp seems to handle this well: https://github.com/Redth/PushSharp/blob/master/PushSharp.Apple/ApplePushChannel.cs

jefflopes avatar Aug 12 '13 22:08 jefflopes

Thank you for the suggestion, I will implement this.

ileitch avatar Aug 30 '13 17:08 ileitch