MCPcopy
hub / github.com/coder/mux / getControlPath

Function getControlPath

src/node/runtime/sshConnectionPool.ts:634–638  ·  view source on GitHub ↗
(config: SSHConnectionConfig)

Source from the content-addressed store, hash-verified

632 * otherwise generate same socket path, causing permission errors).
633 */
634export function getControlPath(config: SSHConnectionConfig): string {
635 const key = makeConnectionKey(config);
636 const hash = hashKey(key);
637 return path.join(os.tmpdir(), `mux-ssh-${hash}`);
638}
639
640/**
641 * Generate stable key from config.

Callers 5

buildGitSshCommandMethod · 0.90
acquireConnectionMethod · 0.85
getControlPathMethod · 0.85
probeConnectionMethod · 0.85

Calls 2

hashKeyFunction · 0.85
makeConnectionKeyFunction · 0.70

Tested by

no test coverage detected