From 8c758e127c9d81791cb55043abb418ce624dfcaf Mon Sep 17 00:00:00 2001 From: isaacs Date: Mon, 7 May 2012 14:19:16 -0700 Subject: [PATCH] Don't destroy on timeout --- lib/http.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/http.js b/lib/http.js index eb050ad423..070942ef24 100644 --- a/lib/http.js +++ b/lib/http.js @@ -1346,7 +1346,6 @@ ClientRequest.prototype.setTimeout = function(msecs, callback) { var self = this; function emitTimeout() { self.emit('timeout'); - self.destroy(new Error('timeout')); } if (this.socket && this.socket.writable) {