| 286 | } |
| 287 | |
| 288 | void 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 | |
| 298 | bool cbm_httpd_close(cbm_httpd_t *d) { |
| 299 | if (!d) |
no test coverage detected