PyAPNs
PyAPNs copied to clipboard
allow wait time after a socket error to be patched if needed.
I see socket error 107 crop up in my logs frequently and it is always only that first iteration.
apns ERROR sending notification with id:2282941054 to APNS failed: <class 'socket.error'>: [Errno 115] Operation now in progress in 1th attempt, will wait 10 secs for next action
10 secs to sit idly seems like a really long time, especially on the first retry.
Subsequent calls happen quickly with no problems. However I understand that this default may be sane for most people so I'm fine with leaving that value. I'd just like to be able to monkey patch it easily and get rid of the magic constant value hidden deep in the code.