ec_httpsrv_session_suspend
Last updated March 2020
Name
ec_httpsrv_session_suspend — Arranges for an http session to be suspended
Synopsis
#include "modules/listeners/httpsrv.h"
| int **ec_httpsrv_session_suspend** (
| sess)
; | |
Description
Arranges for an http session to be suspended.
Note
You must call this before returning EC_HTTPSRV_HANDLER_ASYNC from a handler.
- sess
-
The session to suspend. A pointer to an
ec_httpsrv_session
struct. For documentation of this data structure see “ec_httpsrv_session”.
Returns 0 on success, or an errno value (EBADF
) if the session has already been suspended.
This function must be called from the event loop handling the HTTP session.
See Also
Was this page helpful?