summaryrefslogtreecommitdiff
path: root/lib/http.js
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-03-02 23:13:35 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2013-03-02 23:13:35 +0100
commit2d51036fb9655d5b775e7f9e5ab362cd91460ca3 (patch)
tree73bae06f6965d2ff3379e092b3d5b79f47ada6b5 /lib/http.js
parent4ac73d2c99a4987c62465c7aa7b0bdd13d2c085e (diff)
parent426cbedb44e1dfff645b9f275f7b27a389dc86b0 (diff)
downloadnode-new-2d51036fb9655d5b775e7f9e5ab362cd91460ca3.tar.gz
Merge remote-tracking branch 'origin/v0.8'
Conflicts: doc/api/http.markdown test/simple/test-crypto.js
Diffstat (limited to 'lib/http.js')
-rw-r--r--lib/http.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http.js b/lib/http.js
index 638cb0cb4b..e057e6baca 100644
--- a/lib/http.js
+++ b/lib/http.js
@@ -505,7 +505,7 @@ OutgoingMessage.prototype._writeRaw = function(data, encoding) {
var timer = setTimeout(function() {
socket.emit('close');
});
- socket.on('close', function() {
+ socket.once('close', function() {
clearTimeout(timer);
});
}