http: Remove socket ondata/onend in parser cleanup
This commit is contained in:
parent
9164fa6aaa
commit
0a414f4caa
@ -1256,6 +1256,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…
x
Reference in New Issue
Block a user