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

Function closeStreamSession

deps/undici/undici.js:8768–8776  ·  view source on GitHub ↗
(stream)

Source from the content-addressed store, hash-verified

8766 }
8767 __name(noop, "noop");
8768 function closeStreamSession(stream) {
8769 const session = stream[kHTTP2Session];
8770 stream[kHTTP2Session] = null;
8771 session[kOpenStreams] -= 1;
8772 if (session[kOpenStreams] === 0) {
8773 session.unref();
8774 setHttp2IdleTimeout(session);
8775 }
8776 }
8777 __name(closeStreamSession, "closeStreamSession");
8778 function onUpgradeStreamClose() {
8779 this.off("error", noop);

Callers 2

onUpgradeStreamCloseFunction · 0.70
onRequestStreamCloseFunction · 0.70

Calls 2

setHttp2IdleTimeoutFunction · 0.70
unrefMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…