Don't destroy on timeout
This commit is contained in:
parent
b4fbf6d275
commit
8c758e127c
@ -1346,7 +1346,6 @@ ClientRequest.prototype.setTimeout = function(msecs, callback) {
|
|||||||
var self = this;
|
var self = this;
|
||||||
function emitTimeout() {
|
function emitTimeout() {
|
||||||
self.emit('timeout');
|
self.emit('timeout');
|
||||||
self.destroy(new Error('timeout'));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.socket && this.socket.writable) {
|
if (this.socket && this.socket.writable) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user