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:1373–1383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1371}
1372
1373static bool runtime_worker_handle_close_intent(cbm_daemon_runtime_worker_t *worker,
1374 uint32_t length) {
1375 if (length != 0) {
1376 return false;
1377 }
1378 /* Terminal for the session (admission, coordinator registration, session
1379 * cancel), but not for the connection: the worker keeps reading so the
1380 * in-flight response tail and the eventual EOF unwind normally. */
1381 runtime_worker_disconnect(worker);
1382 return true;
1383}
1384
1385static bool runtime_worker_handle_disconnect(cbm_daemon_runtime_worker_t *worker, uint32_t length) {
1386 if (length != 0) {

Callers 1

Calls 1

Tested by

no test coverage detected