ostinelli / net-http2

NetHttp2 is an HTTP/2 client for Ruby.
MIT License
140 stars 31 forks source link

reconnect? #36

Closed singpolyma-shopify closed 5 years ago

singpolyma-shopify commented 5 years ago

If the socket connection terminates, it looks like the socket loop will terminate but not be re-opened by ensure_open ... what is the right way to handle reconnects?

singpolyma-shopify commented 5 years ago

After more testing... reconnects seem to "just work" so long as an error callback is set on the client.

akostadinov commented 9 months ago

But seems like a back-off algorithm would be nice to have with this. Otherwise it would be hard to make multiple threads know that there was a disconnection and to wait before trying to do something.