http: Remove socket ondata/onend in parser cleanup

This commit is contained in:
isaacs 2012-05-01 15:25:59 -07:00
parent bfe9cdb7f2
commit bce68134b6
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}
};