Fixes #1085. The agent end event may call detachSocket() after the socket is detached and destroyed by abort(). This patch avoids that behavior.
This commit is contained in:
parent
901ebed8ff
commit
5b02d564c3
@ -1333,7 +1333,10 @@ Agent.prototype._establishNewConnection = function() {
|
||||
debug('AGENT socket keep-alive');
|
||||
}
|
||||
|
||||
// The socket may already be detached and destroyed by an abort call
|
||||
if (socket._httpMessage) {
|
||||
req.detachSocket(socket);
|
||||
}
|
||||
|
||||
assert(!socket._httpMessage);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user