| 150 | } |
| 151 | |
| 152 | static bool connection_interrupted(cbm_http_conn_t *connection) { |
| 153 | cbm_httpd_t *owner = connection->owner; |
| 154 | if (!owner) |
| 155 | return false; |
| 156 | cbm_mutex_lock(&owner->active_mutex); |
| 157 | bool interrupted = owner->interrupted; |
| 158 | cbm_mutex_unlock(&owner->active_mutex); |
| 159 | return interrupted; |
| 160 | } |
| 161 | |
| 162 | /* Wait against the caller's absolute deadline. Windows uses short select() |
| 163 | * slices because shutdown() from the stop thread does not reliably wake a |
no test coverage detected