diff options
| author | Roman Arutyunyan <arut@nginx.com> | 2021-05-25 16:41:59 +0300 |
|---|---|---|
| committer | Roman Arutyunyan <arut@nginx.com> | 2021-05-25 16:41:59 +0300 |
| commit | 1677503f98ca577745f95508bf73dbbaf36c4b21 (patch) | |
| tree | 8d4923d6d1dcb3cce8dff3726f7511a9200f2452 /src/event/quic/ngx_event_quic.h | |
| parent | cd86cf34db80c517c8e26bb81bc393065eb96eda (diff) | |
| download | nginx-1677503f98ca577745f95508bf73dbbaf36c4b21.tar.gz nginx-1677503f98ca577745f95508bf73dbbaf36c4b21.tar.bz2 | |
QUIC: make sure stream data size is lower than final size.
As per quic-transport 34, FINAL_SIZE_ERROR is generated if an endpoint received
a STREAM frame or a RESET_STREAM frame containing a final size that was lower
than the size of stream data that was already received.
Diffstat (limited to 'src/event/quic/ngx_event_quic.h')
| -rw-r--r-- | src/event/quic/ngx_event_quic.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/event/quic/ngx_event_quic.h b/src/event/quic/ngx_event_quic.h index 83e72a6f3..230c2c46f 100644 --- a/src/event/quic/ngx_event_quic.h +++ b/src/event/quic/ngx_event_quic.h @@ -79,6 +79,7 @@ struct ngx_quic_stream_s { uint64_t send_max_data; uint64_t recv_max_data; uint64_t recv_offset; + uint64_t recv_last; uint64_t final_size; ngx_chain_t *in; ngx_uint_t cancelable; /* unsigned cancelable:1; */ |
