nghttp3_conn_shutdown
Synopsis
#include <nghttp3/nghttp3.h>
-
int nghttp3_conn_shutdown(nghttp3_conn *conn)
nghttp3_conn_shutdown()
starts graceful shutdown. It should be called afternghttp3_conn_submit_shutdown_notice()
and a couple of RTTs. After calling this function, the local endpoint starts rejecting new incoming streams. The existing streams are processed normally. See alsonghttp3_conn_is_drained()
.This function returns 0 if it succeeds, or one of the following negative error codes:
NGHTTP3_ERR_NOMEM
Out of memory.