comparison src/event/quic/ngx_event_quic.h @ 9003:6c1dfd072859 quic

QUIC: switch stream to DATA_RECVD state. The switch happens when received byte counter reaches stream final size. Previously, this state was skipped. The stream went from SIZE_KNOWN to DATA_READ when all bytes were read by application. The change prevents STOP_SENDING frames from being sent when all data is received from client, but not yet fully read by application.
author Roman Arutyunyan <arut@nginx.com>
date Thu, 03 Feb 2022 18:11:59 +0300
parents cba58cb06b3a
children a5aebd51e4c7
comparison
equal deleted inserted replaced
9002:740e8b99519d 9003:6c1dfd072859
80 uint64_t send_max_data; 80 uint64_t send_max_data;
81 uint64_t recv_max_data; 81 uint64_t recv_max_data;
82 uint64_t recv_offset; 82 uint64_t recv_offset;
83 uint64_t recv_window; 83 uint64_t recv_window;
84 uint64_t recv_last; 84 uint64_t recv_last;
85 uint64_t recv_size;
85 uint64_t final_size; 86 uint64_t final_size;
86 ngx_chain_t *in; 87 ngx_chain_t *in;
87 ngx_chain_t *out; 88 ngx_chain_t *out;
88 ngx_uint_t cancelable; /* unsigned cancelable:1; */ 89 ngx_uint_t cancelable; /* unsigned cancelable:1; */
89 ngx_quic_stream_send_state_e send_state; 90 ngx_quic_stream_send_state_e send_state;