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

Function onTimeout

lib/_http_agent.js:524–533  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

522 s.on('close', onClose);
523
524 function onTimeout() {
525 debug('CLIENT socket onTimeout');
526
527 // Destroy if in free list.
528 // TODO(ronag): Always destroy, even if not in free list.
529 const sockets = agent.freeSockets;
530 if (ObjectKeys(sockets).some((name) => sockets[name].includes(s))) {
531 return s.destroy();
532 }
533 }
534 s.on('timeout', onTimeout);
535
536 function onRemove() {

Callers

nothing calls this directly

Calls 4

someMethod · 0.80
includesMethod · 0.80
debugFunction · 0.50
destroyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…