diff options
| author | Roman Arutyunyan <arut@nginx.com> | 2021-05-25 13:55:12 +0300 |
|---|---|---|
| committer | Roman Arutyunyan <arut@nginx.com> | 2021-05-25 13:55:12 +0300 |
| commit | cd86cf34db80c517c8e26bb81bc393065eb96eda (patch) | |
| tree | 3848c44838684577a48921c6611241ea3334d562 /src/event/quic/ngx_event_quic_streams.h | |
| parent | f1378601010b8f2857ac7c043ec4ac6d534543bb (diff) | |
| download | nginx-cd86cf34db80c517c8e26bb81bc393065eb96eda.tar.gz nginx-cd86cf34db80c517c8e26bb81bc393065eb96eda.tar.bz2 | |
QUIC: refactored CRYPTO and STREAM buffer ordering.
Generic function ngx_quic_order_bufs() is introduced. This function creates
and maintains a chain of buffers with holes. Holes are marked with b->sync
flag. Several buffers and holes in this chain may share the same underlying
memory buffer.
When processing STREAM frames with this function, frame data is copied only
once to the right place in the stream input chain. Previously data could
be copied twice. First when buffering an out-of-order frame data, and then
when filling stream buffer from ordered frame queue. Now there's only one
data chain for both tasks.
Diffstat (limited to 'src/event/quic/ngx_event_quic_streams.h')
| -rw-r--r-- | src/event/quic/ngx_event_quic_streams.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/event/quic/ngx_event_quic_streams.h b/src/event/quic/ngx_event_quic_streams.h index 1a755e91e..0ee9c37f2 100644 --- a/src/event/quic/ngx_event_quic_streams.h +++ b/src/event/quic/ngx_event_quic_streams.h @@ -14,8 +14,6 @@ ngx_int_t ngx_quic_handle_stream_frame(ngx_connection_t *c, ngx_quic_header_t *pkt, ngx_quic_frame_t *frame); -ngx_int_t ngx_quic_stream_input(ngx_connection_t *c, - ngx_quic_frame_t *frame, void *data); void ngx_quic_handle_stream_ack(ngx_connection_t *c, ngx_quic_frame_t *f); ngx_int_t ngx_quic_handle_max_data_frame(ngx_connection_t *c, |
