(err, req)
| 345 | }; |
| 346 | |
| 347 | function handleSocketAfterProxy(err, req) { |
| 348 | if (err.code === 'ERR_PROXY_TUNNEL') { |
| 349 | if (err.proxyTunnelTimeout) { |
| 350 | req.emit('timeout'); // Propagate the timeout from the tunnel to the request. |
| 351 | } |
| 352 | req.emit('error', err); |
| 353 | } |
| 354 | } |
| 355 | |
| 356 | Agent.prototype.addRequest = function addRequest(req, options, port/* legacy */, |
| 357 | localAddress/* legacy */) { |
no test coverage detected
searching dependent graphs…