Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Don't destroy on timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed May 7, 2012
1 parent b4fbf6d commit 8c758e1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/http.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 8c758e1

Please sign in to comment.