-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
ECONNRESET with HTTP/2 upgrade RST #3564
Comments
Since this repo seems dead, here's the workaround we ended up with:
|
17 tasks
For future readers: Please check the documentation here: https://socket.io/docs/v4/server-initialization/#with-an-http2-server Please reopen if needed. |
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You want to:
Current behaviour
Application crashes with a ECONNRESET when an HTTP/2 upgrade is attempted (and uncleanly aborted) to a socket on which Socket.IO is listening. Output:
Steps to reproduce (if the current behaviour is a bug)
Expected behaviour
One of the "error" handlers fires. At the very least, the server doesn't crash.
Setup
Other information (e.g. stacktraces, related issues, suggestions how to fix)
Output when running the server with NODE_DEBUG="net,http" is below:
I have also tried wrapping the application in a domain and catching all 'error' events, then printing them out. The output looks something like this:
The text was updated successfully, but these errors were encountered: