ff4ff35918
Red Bear OS is a full fork. All sources must be available from git clone with zero network access. Removed gitignore rules that excluded fetched source trees under recipes/*/source/, local/recipes/kde/*/source/, local/recipes/qt/*/source/, and vendor source trees. Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded. 127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt frameworks, mesa, wayland, DRM drivers, and every other recipe source.
35 lines
1.1 KiB
ReStructuredText
35 lines
1.1 KiB
ReStructuredText
|
|
nghttp2_session_terminate_session
|
|
=================================
|
|
|
|
Synopsis
|
|
--------
|
|
|
|
*#include <nghttp2/nghttp2.h>*
|
|
|
|
.. function:: int nghttp2_session_terminate_session(nghttp2_session *session, uint32_t error_code)
|
|
|
|
|
|
Signals the session so that the connection should be terminated.
|
|
|
|
The last stream ID is the minimum value between the stream ID of a
|
|
stream for which :type:`nghttp2_on_frame_recv_callback` was called
|
|
most recently and the last stream ID we have sent to the peer
|
|
previously.
|
|
|
|
The *error_code* is the error code of this GOAWAY frame. The
|
|
pre-defined error code is one of :enum:`nghttp2_error_code`.
|
|
|
|
After the transmission, both `nghttp2_session_want_read()` and
|
|
`nghttp2_session_want_write()` return 0.
|
|
|
|
This function should be called when the connection should be
|
|
terminated after sending GOAWAY. If the remaining streams should
|
|
be processed after GOAWAY, use `nghttp2_submit_goaway()` instead.
|
|
|
|
This function returns 0 if it succeeds, or one of the following
|
|
negative error codes:
|
|
|
|
:enum:`nghttp2_error.NGHTTP2_ERR_NOMEM`
|
|
Out of memory.
|