Skip to content

http: remove 'data' and 'end' listener if client parser error - #40244

Closed
mcollina wants to merge 1 commit into
nodejs:masterfrom
mcollina:remove-data-listener-on-error-http
Closed

http: remove 'data' and 'end' listener if client parser error#40244
mcollina wants to merge 1 commit into
nodejs:masterfrom
mcollina:remove-data-listener-on-error-http

Conversation

@mcollina

Copy link
Copy Markdown
Member

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

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
@mcollina
mcollina requested review from jasnell and ronag September 28, 2021 14:57
@nodejs-github-bot nodejs-github-bot added http Issues and PRs related to the http subsystem. needs-ci PRs that need a full CI run. labels Sep 28, 2021
@mcollina

Copy link
Copy Markdown
Member Author
@mcollina mcollina added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Sep 29, 2021
@mcollina mcollina added the commit-queue PRs queued for automated landing through the Commit Queue. label Sep 30, 2021
@github-actions github-actions Bot removed the commit-queue PRs queued for automated landing through the Commit Queue. label Sep 30, 2021
@github-actions

Copy link
Copy Markdown
Contributor

Landed in 4f3eda6...140b25a

@github-actions github-actions Bot closed this Sep 30, 2021
nodejs-github-bot pushed a commit that referenced this pull request Sep 30, 2021
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>
targos pushed a commit that referenced this pull request Oct 4, 2021
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. http Issues and PRs related to the http subsystem. needs-ci PRs that need a full CI run.

4 participants