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

Function cbm_httpd_interrupt

src/ui/httpd.c:288–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288void cbm_httpd_interrupt(cbm_httpd_t *d) {
289 if (!d)
290 return;
291 cbm_mutex_lock(&d->active_mutex);
292 d->interrupted = true;
293 if (d->active)
294 socket_shutdown(d->active->fd);
295 cbm_mutex_unlock(&d->active_mutex);
296}
297
298bool cbm_httpd_close(cbm_httpd_t *d) {
299 if (!d)

Callers 2

cbm_http_server_stopFunction · 0.85
test_httpd.cFile · 0.85

Calls 3

cbm_mutex_lockFunction · 0.85
socket_shutdownFunction · 0.85
cbm_mutex_unlockFunction · 0.85

Tested by

no test coverage detected