MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / updatePort

Method updatePort

packages/server/src/lock.ts:92–92  ·  view source on GitHub ↗

* Rewrite the lock file's recorded `port` to the one actually bound. Used * when the requested port was busy (held by a third-party process) and the * server retried on `port + 1`: the lock must advertise the real port so * `kimi server status` / `kill` / `ps` can find the daemon. Best-effo

(port: number)

Source from the content-addressed store, hash-verified

90 * pid, or already records `port`.
91 */
92 updatePort(port: number): void;
93}
94
95/** Error thrown when another server is already holding the lock. */

Callers 2

lock.test.tsFile · 0.80
startServerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected