-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Making request while in :disconnected
state.
#144
Comments
I'm not sure that we can safely retry the request for the user here. Well...we could. But we'd add a lot of complexity to do it. We'd need to have a heuristic that the user can tune for the number of retries that they can attempt, the back-off ratios, etc. So, if we're talking about retries, I'd like to leave that in the hands of the user. I wonder if it would be better to solve this by not using a disconnected connection in the first place. That would mean updating the pooling logic to avoid connections that are in a disconnected state. This would definitely increase the amount of state to manage, but it would give us better control over the pool and would allow us to use smarter load balancing across connections in the future. This is the solution that I'm currently leaning towards. |
I know this is an old thread, but I've been running into this issue lately. I've also tried lowering the pool_size, but still getting regular |
Those correspond to two Finch issues: - sneako/finch#216 - sneako/finch#144 where retrying seems to be the only solution currently.
Hi everyone -
While diagnosing this error we found that this sequence of events would lead to a
:disconnected
error:64
).GOAWAY
due to inactivity, the state machine enters the:disconnected
state which sets a 500ms timer to re-connect.Once we figured out this sequence of events, we opened this issue to fix the
FunctionClauseError
. We are catching that exception and re-trying as a workaround. We've also lowered the HTTP2 pool size to reduce the chances of hitting that case. But, anyone could hit that case, so I'm wondering what should be done...:disconnected
"Thoughts? Thanks again for the hard work put into this library.
The text was updated successfully, but these errors were encountered: