(agent, req, socket)
| 672 | }; |
| 673 | |
| 674 | function setRequestSocket(agent, req, socket) { |
| 675 | req.onSocket(socket); |
| 676 | const agentTimeout = agent.options.timeout || 0; |
| 677 | if (req.timeout === undefined || req.timeout === agentTimeout) { |
| 678 | return; |
| 679 | } |
| 680 | socket.setTimeout(req.timeout); |
| 681 | } |
| 682 | |
| 683 | function asyncResetHandle(socket) { |
| 684 | // Guard against an uninitialized or user supplied Socket. |
no test coverage detected
searching dependent graphs…