-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
http: double error emitted after HPE_INVALID_CONSTANT #40242
Comments
WDYT @ronag? |
I think this is one of those we've been struggling with at undici as well. The server might be sending more data than is advertised in the content-length header. I don't know of any good solution to this problem. |
I'm referring on the fact that we are not removing the listener for |
We should probably remove the listener or add a |
There might be the case of some more data coming through after the parser has returned an error and we have destroyed the socket. We should also be removing the 'data' event handler. Fixes: nodejs#40242
There might be the case of some more data coming through after the parser has returned an error and we have destroyed the socket. We should also be removing the 'data' event handler. Fixes: #40242 PR-URL: #40244 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: James M Snell <jasnell@gmail.com>
The following snipped could cause an internal assertion to fail and an error to be emitted twice:
v14.16.0 linux arm
Originally posted by @terreng in #35384 (comment)
The text was updated successfully, but these errors were encountered: