Skip to main content


ec_httpsrv_response_flush — Flush pending session response output


#include "modules/listeners/httpsrv.h"

| int **ec_httpsrv_response_flush** ( | sess, |   | |   | final); |   |

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



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.

Flush pending session response output.



the session to flush


indicates if there is no more data in this response.

Flushes pending data to the client. If final is non-zero, this is taken as a hint that there is no more data pending for this session (this is significant for compression schemes).

Return Values

0 if successful, else returns an errno indicating what went wrong.

If invoked on the scheduler thread, this function is likely to return EAGAIN in cases where the network IO might have blocked the caller.

Was this page helpful?