-
Notifications
You must be signed in to change notification settings - Fork 789
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
ember h2 client hangs after long running connection dies #7359
Comments
I tried to distill an example: https://gist.github.com/nefilim/b47805255431b00866c07f3375fa36ff I try to simulate the problem by running this on a laptop and then putting it to sleep. Unfortunately it's not quite the same problem, the readLoop does error but so does the writeLoop, those errors does not get propagated. The connection receives a It seems in my application, the readLoop errors leaving the client in a bad state but no further errors are being propagated to allow clean/recreation .. not quite sure how to simulate that. |
When this happens I have two fibers waiting in the same place 🤔
|
I have the following scenario:
long running h2 connection to a service with the following request:
events are processed in a fs2 Stream. I have another fs2 Stream based on Queue for commands to the same service:
Something goes wrong with the network attached to the host running this client, I can see a persistent connection (not http4s) to another service is detected as failed and recreated.
However the above exception is only thrown once a command is being submitted to the queue (and hence attempted to being sent - this could be an hour after the other persistent connection is being recreated) and once this exception is logged by http4s, the connection is dead (netstat shows nothing), the ember client unresponsive and no further SSE events are received until the service is restarted (the JVM process).
I've tried multiple disparate approaches but the behaviour is always the same.
The text was updated successfully, but these errors were encountered: