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

Function runtime_reject_inline

src/daemon/runtime.c:2003–2011  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2001}
2002
2003static void runtime_reject_inline(cbm_daemon_ipc_connection_t *connection, const char *message) {
2004 cbm_daemon_runtime_connect_result_t result;
2005 runtime_result_rejected(&result, message);
2006 (void)runtime_send_hello_response(connection, &result);
2007 /* Same Windows named-pipe discard hazard as runtime_worker_finish: the
2008 * peer must get to read the rejection before the handle closes. */
2009 cbm_daemon_ipc_connection_drain(connection, RUNTIME_REJECT_DRAIN_TIMEOUT_MS);
2010 cbm_daemon_ipc_connection_close(connection);
2011}
2012
2013static void runtime_accept_connection(cbm_daemon_runtime_service_t *service,
2014 cbm_daemon_ipc_connection_t *connection) {

Callers 1

Tested by

no test coverage detected