mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
http: fix http server connection list when close
PR-URL: https://github.com/nodejs/node/pull/43949 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Feng Yu <F3n67u@outlook.com>
This commit is contained in:
@@ -182,6 +182,7 @@ function freeParser(parser, req, socket) {
|
||||
if (parser._consumed)
|
||||
parser.unconsume();
|
||||
cleanParser(parser);
|
||||
parser.remove();
|
||||
if (parsers.free(parser) === false) {
|
||||
// Make sure the parser's stack has unwound before deleting the
|
||||
// corresponding C++ object through .close().
|
||||
|
||||
Reference in New Issue
Block a user