MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / runtime_worker_handle_close_intent

Function runtime_worker_handle_close_intent

src/daemon/runtime.c:1703–1713  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1701}
1702
1703static bool runtime_worker_handle_close_intent(cbm_daemon_runtime_worker_t *worker,
1704 uint32_t length) {
1705 if (length != 0) {
1706 return false;
1707 }
1708 /* Terminal for the session (admission, coordinator registration, session
1709 * cancel), but not for the connection: the worker keeps reading so the
1710 * in-flight response tail and the eventual EOF unwind normally. */
1711 runtime_worker_disconnect(worker);
1712 return true;
1713}
1714
1715static bool runtime_worker_handle_disconnect(cbm_daemon_runtime_worker_t *worker, uint32_t length) {
1716 if (length != 0) {

Callers 1

Calls 1

Tested by

no test coverage detected