| 359 | } |
| 360 | |
| 361 | static void frontend_end_request(frontend_state_t *state, bool failed) { |
| 362 | cbm_mutex_lock(&state->mutex); |
| 363 | state->in_request = false; |
| 364 | state->active_has_id = false; |
| 365 | state->active_id = 0; |
| 366 | state->active_id_str = NULL; |
| 367 | state->active_request_token = CBM_DAEMON_RUNTIME_APPLICATION_TOKEN_INVALID; |
| 368 | state->failed = state->failed || failed; |
| 369 | cbm_mutex_unlock(&state->mutex); |
| 370 | } |
| 371 | |
| 372 | static bool frontend_write_response(FILE *out, const uint8_t *response, uint32_t response_length, |
| 373 | bool content_length_framed) { |
no test coverage detected