MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / onSocketEnd

Function onSocketEnd

out/cli.cjs:54531–54540  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54529 const requests = client[kQueue].splice(client[kRunningIdx]);
54530 for (let i3 = 0; i3 < requests.length; i3++) {
54531 const request3 = requests[i3];
54532 errorRequest(client, request3, err);
54533 }
54534 assert2(client[kSize] === 0);
54535 }
54536 }
54537 function onSocketEnd() {
54538 const { [kParser]: parser, [kClient]: client } = this;
54539 if (client[kHTTPConnVersion] !== "h2") {
54540 if (parser.statusCode && !parser.shouldKeepAlive) {
54541 parser.onMessageComplete();
54542 return;
54543 }

Callers

nothing calls this directly

Calls 2

onMessageCompleteMethod · 0.80
destroyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…