|
cwist
Modern C web framework with libttak runtime
|
Classic-pool connection registry hooks for shutdown (private). More...
#include <stdbool.h>

Go to the source code of this file.
Functions | |
| bool | cwist_http_live_idle_enter (void) |
| void | cwist_http_live_idle_leave (void) |
Classic-pool connection registry hooks for shutdown (private).
A classic pool worker registers the connection it serves. Handlers bracket the blocking wait for the next request on a keep-alive connection with cwist_http_live_idle_enter()/_leave(), so shutdown can close idle connections at once and let in-flight requests finish. Outside a classic pool worker both calls are no-ops.
Definition in file http_live.h.
Mark the calling worker's connection idle (waiting for a new request).
Definition at line 423 of file http.c.
References cap.
Referenced by cwist_app_http_handler(), and cwist_http_receive_request().
The connection received request bytes; it is no longer idle.
Definition at line 434 of file http.c.
References cap.
Referenced by cwist_app_http_handler(), and cwist_http_receive_request().