mirror of https://github.com/nodejs/node.git
http: Remove socket ondata/onend in parser cleanup
This commit is contained in:
parent
bfe9cdb7f2
commit
bce68134b6
|
@ -1128,6 +1128,9 @@ ClientRequest.prototype.onSocket = function(socket) {
|
|||
var freeParser = function() {
|
||||
if (parser) {
|
||||
parsers.free(parser);
|
||||
parser.socket.onend = null;
|
||||
parser.socket.ondata = null;
|
||||
parser.socket = null;
|
||||
parser = null;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue