Don't destroy on timeout

This commit is contained in:
isaacs 2012-05-07 14:19:16 -07:00
parent b4fbf6d275
commit 8c758e127c

View File

@ -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) {