mirror of https://github.com/nodejs/node.git
parent
c2b5ea218c
commit
110f06578d
|
@ -1194,13 +1194,12 @@ Agent.prototype._establishNewConnection = function() {
|
||||||
req = self.queue.shift();
|
req = self.queue.shift();
|
||||||
assert(req._queue === self.queue);
|
assert(req._queue === self.queue);
|
||||||
req._queue = null;
|
req._queue = null;
|
||||||
} else {
|
|
||||||
// No requests on queue? Where is the request
|
|
||||||
assert(0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
req.emit('error', err);
|
if (req) {
|
||||||
req._hadError = true; // hacky
|
req.emit('error', err);
|
||||||
|
req._hadError = true; // hacky
|
||||||
|
}
|
||||||
|
|
||||||
// clean up so that agent can handle new requests
|
// clean up so that agent can handle new requests
|
||||||
parser.finish();
|
parser.finish();
|
||||||
|
|
Loading…
Reference in New Issue