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

Function runtime_reject_drain_timeout_ms

src/daemon/runtime.c:2024–2031  ·  view source on GitHub ↗

Under the same seam an inline rejection's drain ends only on the peer's * close, never on the 250 ms bound (the drain only waits on Windows). */

Source from the content-addressed store, hash-verified

2022/* Under the same seam an inline rejection's drain ends only on the peer's
2023 * close, never on the 250 ms bound (the drain only waits on Windows). */
2024static uint32_t runtime_reject_drain_timeout_ms(void) {
2025#ifdef CBM_ENABLE_TEST_SEAMS
2026 if (atomic_load(&runtime_hold_peer_waits_seam)) {
2027 return CBM_DAEMON_IPC_WAIT_FOREVER;
2028 }
2029#endif
2030 return RUNTIME_REJECT_DRAIN_TIMEOUT_MS;
2031}
2032
2033static void *runtime_connection_worker(void *opaque) {
2034 cbm_daemon_runtime_worker_t *worker = opaque;

Callers 1

runtime_reject_inlineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected