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

Function onUpgradeStreamClose

deps/undici/undici.js:8778–8784  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8776 }
8777 __name(closeStreamSession, "closeStreamSession");
8778 function onUpgradeStreamClose() {
8779 this.off("error", noop);
8780 const state = this[kRequestStreamState];
8781 this[kRequestStreamState] = null;
8782 failUpgradeStream(state, new InformationalError("HTTP/2: stream closed before response headers"));
8783 closeStreamSession(this);
8784 }
8785 __name(onUpgradeStreamClose, "onUpgradeStreamClose");
8786 function onRequestStreamClose() {
8787 const state = this[kRequestStreamState];

Callers

nothing calls this directly

Calls 3

failUpgradeStreamFunction · 0.70
closeStreamSessionFunction · 0.70
offMethod · 0.45

Tested by

no test coverage detected