diff options
| author | Roman Arutyunyan <arut@nginx.com> | 2022-02-14 14:51:10 +0300 |
|---|---|---|
| committer | Roman Arutyunyan <arut@nginx.com> | 2022-02-14 14:51:10 +0300 |
| commit | 055025fa3b6d42d61ee99d8b6d26a0bf93444e85 (patch) | |
| tree | 9486672dd68d8209e2f217c391cc705571efd191 /src/event/quic/ngx_event_quic_streams.c | |
| parent | 8b3a050f3b5995631f1a8011916283b9b7424d6b (diff) | |
| download | nginx-055025fa3b6d42d61ee99d8b6d26a0bf93444e85.tar.gz nginx-055025fa3b6d42d61ee99d8b6d26a0bf93444e85.tar.bz2 | |
QUIC: trim input chain in ngx_quic_buffer_write().
This allows to eliminate explicit trimming when handling input STREAM frame.
As a result, ngx_quic_trim_chain() is eliminated as well.
Diffstat (limited to 'src/event/quic/ngx_event_quic_streams.c')
| -rw-r--r-- | src/event/quic/ngx_event_quic_streams.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/event/quic/ngx_event_quic_streams.c b/src/event/quic/ngx_event_quic_streams.c index 1906bc695..78650b04f 100644 --- a/src/event/quic/ngx_event_quic_streams.c +++ b/src/event/quic/ngx_event_quic_streams.c @@ -1115,11 +1115,6 @@ ngx_quic_handle_stream_frame(ngx_connection_t *c, ngx_quic_header_t *pkt, return NGX_OK; } - if (f->offset < qs->recv_offset) { - ngx_quic_trim_chain(frame->data, qs->recv_offset - f->offset); - f->offset = qs->recv_offset; - } - if (f->fin) { if (qs->recv_final_size != (uint64_t) -1 && qs->recv_final_size != last) { |
