+4
-5
@@ -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 @@ |
+1
-1
| { | ||
| "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", |
4090
-0.12%46
-2.13%