MCPcopy Index your code
hub / github.com/nodejs/node / setRequestSocket

Function setRequestSocket

lib/_http_agent.js:674–681  ·  view source on GitHub ↗
(agent, req, socket)

Source from the content-addressed store, hash-verified

672};
673
674function 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
683function asyncResetHandle(socket) {
684 // Guard against an uninitialized or user supplied Socket.

Callers 2

AgentFunction · 0.85
_http_agent.jsFile · 0.85

Calls 1

setTimeoutMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…