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

Function asyncResetHandle

lib/_http_agent.js:683–691  ·  view source on GitHub ↗
(socket)

Source from the content-addressed store, hash-verified

681}
682
683function asyncResetHandle(socket) {
684 // Guard against an uninitialized or user supplied Socket.
685 const handle = socket._handle;
686 if (handle && typeof handle.asyncReset === 'function') {
687 // Assign the handle a new asyncId and run any destroy()/init() hooks.
688 handle.asyncReset(new ReusedHandle(handle.getProviderType(), handle));
689 socket[async_id_symbol] = handle.getAsyncId();
690 }
691}
692
693module.exports = {
694 Agent,

Callers 2

AgentFunction · 0.85
_http_agent.jsFile · 0.85

Calls 1

getAsyncIdMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…