nghttp2_conn_terminate
Synopsis
#include <nghttp2v2/nghttp2.h>
-
void nghttp2_conn_terminate(nghttp2_conn *conn, uint32_t error_code)
nghttp2_conn_terminate()shutdowns the connection abruptly with the given error_code. After calling this function,nghttp2_conn_read()discards all incoming data. Close the underlying connection afternghttp2_conn_write()returnsNGHTTP2_ERR_CLOSING.