MCPcopy Index your code
hub / github.com/coder/mux / scheduleKill

Method scheduleKill

src/node/runtime/sshConnectionPool.ts:568–580  ·  view source on GitHub ↗
(ms: number)

Source from the content-addressed store, hash-verified

566 }
567
568 const scheduleKill = (ms: number) => {
569 if (timer) {
570 clearTimeout(timer);
571 }
572 timer = setTimeout(() => {
573 timedOut = true;
574 proc.kill("SIGKILL");
575 cleanup();
576 const error = "SSH probe timed out";
577 this.markFailedByKey(key, error);
578 reject(new Error(error));
579 }, ms);
580 };
581
582 // Wire askpass deadline extension, then start initial fast timeout.
583 extendDeadline = scheduleKill;

Callers

nothing calls this directly

Calls 4

markFailedByKeyMethod · 0.95
rejectFunction · 0.85
cleanupFunction · 0.70
killMethod · 0.65

Tested by

no test coverage detected