Comparing version 3.1.2 to 3.1.3
@@ -23,10 +23,9 @@ 'use strict'; | ||
req.on('socket', function assign(socket) { | ||
// Socket may come from Agent pool and may be already connected | ||
if (socket._timedOutHandlerSet) { | ||
clear(); | ||
// Socket may come from Agent pool and may be already connected. | ||
if (!(socket.connecting || socket._connecting)) { | ||
connect.call(socket); | ||
return; | ||
} | ||
socket._timedOutHandlerSet = true; | ||
socket.on('connect', connect); | ||
socket.once('connect', connect); | ||
}); | ||
@@ -33,0 +32,0 @@ |
{ | ||
"name": "timed-out", | ||
"version": "3.1.2", | ||
"version": "3.1.3", | ||
"description": "Emit `ETIMEDOUT` or `ESOCKETTIMEDOUT` when ClientRequest is hanged", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4090
46