Skip to content

Commit f8f8754

Browse files
mcollinatargos
authored andcommitted
Revert "http: reset parser.incoming when server response is finished"
This reverts commit 779a05d. PR-URL: #29263 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 9bc766c commit f8f8754

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
@@ -621,8 +621,6 @@ function resOnFinish(req, res, socket, state, server) {
621621
assert(state.incoming.length === 0 || state.incoming[0] === req);
622622

623623
state.incoming.shift();
624-
// Reset the .incoming property so that the request object can be gc'ed.
625-
if (socket.parser) socket.parser.incoming = null;
626624

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

0 commit comments

Comments
 (0)