Skip to content

Commit a5d9288

Browse files
mcollinaTrott
authored andcommitted
Revert "http: reset parser.incoming when server response is finished"
This reverts commit 779a05d. PR-URL: #29263 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent d5c3837 commit a5d9288

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/_http_server.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,8 +618,6 @@ function resOnFinish(req, res, socket, state, server) {
618618
assert(state.incoming.length === 0 || state.incoming[0] === req);
619619

620620
state.incoming.shift();
621-
// Reset the .incoming property so that the request object can be gc'ed.
622-
if (socket.parser) socket.parser.incoming = null;
623621

624622
// If the user never called req.read(), and didn't pipe() or
625623
// .resume() or .on('data'), then we call req._dump() so that the

0 commit comments

Comments
 (0)