Skip to main content

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); |   |

ec_httpsrv_session * <var class="pdparam">sess</var>;

Description

Arranges for an http session to be suspended.

Note

You must call this before returning EC_HTTPSRV_HANDLER_ASYNC from a handler.

Parameters

sess

The session to suspend. A pointer to an ec_httpsrv_session struct. For documentation of this data structure see “ec_httpsrv_session”.

Return Values

Returns 0 on success, or an errno value (EBADF) if the session has already been suspended.

Threading

This function must be called from the event loop handling the HTTP session.

See Also

Was this page helpful?