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

Function runtime_reject_inline

src/daemon/runtime.c:1972–1980  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1970}
1971
1972static void runtime_reject_inline(cbm_daemon_ipc_connection_t *connection, const char *message) {
1973 cbm_daemon_runtime_connect_result_t result;
1974 runtime_result_rejected(&result, message);
1975 (void)runtime_send_hello_response(connection, &result);
1976 /* Same Windows named-pipe discard hazard as runtime_worker_finish: the
1977 * peer must get to read the rejection before the handle closes. */
1978 cbm_daemon_ipc_connection_drain(connection, RUNTIME_REJECT_DRAIN_TIMEOUT_MS);
1979 cbm_daemon_ipc_connection_close(connection);
1980}
1981
1982static void runtime_accept_connection(cbm_daemon_runtime_service_t *service,
1983 cbm_daemon_ipc_connection_t *connection) {

Callers 1

Tested by

no test coverage detected