Skip to content
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

streams timing out when connection is closed #52

Open
akostadinov opened this issue Nov 20, 2023 · 1 comment
Open

streams timing out when connection is closed #52

akostadinov opened this issue Nov 20, 2023 · 1 comment

Comments

@akostadinov
Copy link

Hello, I'm doing 5 threads requesting data on a HTTP/2 connection.

The server often closes the connection and I have a handler to print when this happens. So I see in console this:

#<SocketError: Socket was remotely closed>

But then the outstanding requests are not interrupted. Rather they seem to stay until timeout occurs. So after awhile I see this in console:

#<NoMethodError: undefined method `body' for nil:NilClass>
#<NoMethodError: undefined method `body' for nil:NilClass>
#<NoMethodError: undefined method `body' for nil:NilClass>

i.e. from the 5 threads, 3 were stuck in the request. Nothing raised. Just response was nil instead of an actual response.

So the issues are two:

  • requests are not interrupted but are let to time out
  • sync requests get a nil response instead of an exception or a proper response object connection.call(:get, ...)
@Matchlighter
Copy link

#47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants