MCPcopy Create free account
hub / github.com/angular/dev-infra / onHTTP2GoAway

Function onHTTP2GoAway

github-actions/saucelabs/set-saucelabs-env.js:7223–7242  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

7221 util.addListener(session, "frameError", onHttp2FrameError);
7222 util.addListener(session, "end", onHttp2SessionEnd);
7223 util.addListener(session, "goaway", onHTTP2GoAway);
7224 util.addListener(session, "close", function() {
7225 const { [kClient]: client2 } = this;
7226 const { [kSocket]: socket2 } = client2;
7227 const err = this[kSocket][kError] || this[kError] || new SocketError("closed", util.getSocketInfo(socket2));
7228 client2[kHTTP2Session] = null;
7229 if (client2.destroyed) {
7230 assert(client2[kPending] === 0);
7231 const requests = client2[kQueue].splice(client2[kRunningIdx]);
7232 for (let i = 0; i < requests.length; i++) {
7233 const request = requests[i];
7234 util.errorRequest(client2, request, err);
7235 }
7236 }
7237 });
7238 session.unref();
7239 client[kHTTP2Session] = session;
7240 socket[kHTTP2Session] = session;
7241 util.addListener(socket, "error", function(err) {
7242 this[kError] = err;
7243 this[kClient][kOnError](err);
7244 });
7245 util.addListener(socket, "end", function() {

Callers

nothing calls this directly

Calls 1

destroyMethod · 0.45

Tested by

no test coverage detected