nghttp3_conn_shutdown_stream_read

Synopsis

#include <nghttp3/nghttp3.h>

int nghttp3_conn_shutdown_stream_read(nghttp3_conn *conn, int64_t stream_id)

nghttp3_conn_shutdown_stream_read() tells the library that read-side of stream denoted by stream_id is abruptly closed, and any further incoming data and pending stream data should be discarded.

If a stream denoted by stream_id is not client bidirectional stream, this function returns 0. If the stream has already shutdown read-side stream, this function returns 0.

This function does not fail if a stream denoted by stream_id is not found, although it may fail with the other reasons.

This function returns 0 if it succeeds, or one of the following negative error codes:

NGHTTP3_ERR_NOMEM

Out of memory.

NGHTTP3_ERR_QPACK_FATAL

QPACK decoder stream overflow.