diff options
author | isaacs <i@izs.me> | 2012-05-01 15:25:59 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-05-01 15:25:59 -0700 |
commit | bce68134b647e6f102acf8e8f8ab3b153858d32c (patch) | |
tree | 732b5b9e1601d15a63eb5c7fdcd6913a4bb51178 /lib | |
parent | bfe9cdb7f2f9b90c95a221dcdce29263f0da5c75 (diff) | |
download | android-node-v8-bce68134b647e6f102acf8e8f8ab3b153858d32c.tar.gz android-node-v8-bce68134b647e6f102acf8e8f8ab3b153858d32c.tar.bz2 android-node-v8-bce68134b647e6f102acf8e8f8ab3b153858d32c.zip |
http: Remove socket ondata/onend in parser cleanup
Diffstat (limited to 'lib')
-rw-r--r-- | lib/http.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/http.js b/lib/http.js index 3986709c2a..9aaff7f3d1 100644 --- a/lib/http.js +++ b/lib/http.js @@ -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; } }; |