mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-07 18:48:54 +08:00
Add nghttp2_session_continue API function
The NGHTTP2_ERR_PAUSE library error code is introduced to pause the execution of nghttp2_session_mem_recv() when that error code is returned from nghttp2_on_frame_recv_callback or nghttp2_on_data_chunk_recv_callback. If this happens, the parameters available for both callbacks are retained until the application calls nghttp2_session_continue(). The application must retain input bytes which was used to produce the frame. After successful call of nghttp2_session_continue, the application can continue to call nghttp2_session_mem_recv() to process additional data.
This commit is contained in:
@@ -80,6 +80,7 @@ typedef enum {
|
||||
} nghttp2_inbound_state;
|
||||
|
||||
typedef struct {
|
||||
nghttp2_frame frame;
|
||||
nghttp2_inbound_state state;
|
||||
uint8_t headbuf[NGHTTP2_FRAME_HEAD_LENGTH];
|
||||
/* How many bytes are filled in headbuf */
|
||||
|
||||
Reference in New Issue
Block a user