Skip to content

Commit

Permalink
Revert "http: reset parser.incoming when server response is finished"
Browse files Browse the repository at this point in the history
This reverts commit 779a05d.

PR-URL: nodejs#29263
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
mcollina authored and Trott committed Aug 24, 2019
1 parent d5c3837 commit a5d9288
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/_http_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -618,8 +618,6 @@ function resOnFinish(req, res, socket, state, server) {
assert(state.incoming.length === 0 || state.incoming[0] === req);

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

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

0 comments on commit a5d9288

Please sign in to comment.