Revert "http: reset parser.incoming when server response is finished"
This reverts commit 779a05d5d1bfe2eeb05386f6415d36f80ca0b3b5. PR-URL: https://github.com/nodejs/node/pull/29263 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
d5c3837061
commit
a5d9288788
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user