Closed Lida closed 8 years ago
Exponential backoff has been on my list for a while. I'll go ahead and roll it into the next release.
Right now pigeon doesn't play very nice when an SSL connection fails. I was able to recreate this exact error by disabling my internet after :apns_worker
starts. I'm thinking the new functionality will be a maximum of 10 retries, and then a normal error tuple in the on_response
.
Implementing exponential backoff was a bit more unreliable than anticipated. For now I fixed the worker crash if the connection times out. Erlang's :ssl.send/2
will eventually send the push if the connection ever becomes available, but because it doesn't track sent pushes, I don't yet have a way to link the server response to the on_response
function.
I'm planning on doing some major overhaul of the HTTP2 code before v1.0
. This should finally get resolved then.
On dev environment, I sometimes get the following timeout
Is there an exponential backoff retry mechanism on Pigeon planned? Or is there at least a way to find out the push failed from the API?