Skip to main content

Name

ec_httpsrv_session_resume — Arranges for a suspended http session to be resumed

Synopsis

#include "modules/listeners/httpsrv.h"

| int **ec_httpsrv_session_resume** ( | sess); |   |

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

Description

Note

This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.

Arranges for a suspended http session to be resumed.

Parameters

sess

the session to resume

finished

indicates if the request has completed.

The session must previously have been marked as suspended by a handler returning EC_HTTPSRV_HANDLER_ASYNC.

Returns 0 on success, or an errno value indicating the reason for failure.

On successful invocation, if finished is 0, the associated handler function will be invoked on the scheduler thread and allowed to continue processing. If finished is non-zero, the session will be treated as though the handler had been invoked one final time and returned EC_HTTPSRV_HANDLER_DONE.

This function is safe to call from any thread.

Was this page helpful?