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

Function getGoAwayError

deps/undici/undici.js:8353–8355  ·  view source on GitHub ↗
(session, errorCode)

Source from the content-addressed store, hash-verified

8351 }
8352 } = http2;
8353 function getGoAwayError(session, errorCode) {
8354 return session[kError] || (errorCode === NGHTTP2_NO_ERROR ? new InformationalError(`HTTP/2: "GOAWAY" frame received with code ${errorCode}`) : new SocketError(`HTTP/2: "GOAWAY" frame received with code ${errorCode}`, util.getSocketInfo(session[kSocket])));
8355 }
8356 __name(getGoAwayError, "getGoAwayError");
8357 function resetHttp2Session(session, err) {
8358 const client = session[kClient];

Callers 1

onHttp2SessionGoAwayFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected