MCPcopy
hub / github.com/di-sukharev/opencommit / onSocketError

Function onSocketError

out/cli.cjs:54508–54519  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

54506 }
54507 }
54508 function onSocketReadable() {
54509 const { [kParser]: parser } = this;
54510 if (parser) {
54511 parser.readMore();
54512 }
54513 }
54514 function onSocketError(err) {
54515 const { [kClient]: client, [kParser]: parser } = this;
54516 assert2(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
54517 if (client[kHTTPConnVersion] !== "h2") {
54518 if (err.code === "ECONNRESET" && parser.statusCode && !parser.shouldKeepAlive) {
54519 parser.onMessageComplete();
54520 return;
54521 }
54522 }

Callers

nothing calls this directly

Calls 3

onErrorFunction · 0.85
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…