diff options
| author | Roman Arutyunyan <arut@nginx.com> | 2021-05-05 17:15:20 +0300 |
|---|---|---|
| committer | Roman Arutyunyan <arut@nginx.com> | 2021-05-05 17:15:20 +0300 |
| commit | a8c8b33144a8e46a87113ed5bd8acb4b9aef18eb (patch) | |
| tree | adff8398db1c61f5c20fadf4700c2fbb77ac5411 /src/event/quic/ngx_event_quic_ack.c | |
| parent | 8f0d5edf63b385c013571439c4af3b2f0fe2c856 (diff) | |
| download | nginx-a8c8b33144a8e46a87113ed5bd8acb4b9aef18eb.tar.gz nginx-a8c8b33144a8e46a87113ed5bd8acb4b9aef18eb.tar.bz2 | |
QUIC: generic buffering for stream input.
Previously each stream had an input buffer. Now memory is allocated as
bytes arrive. Generic buffering mechanism is used for this.
Diffstat (limited to 'src/event/quic/ngx_event_quic_ack.c')
| -rw-r--r-- | src/event/quic/ngx_event_quic_ack.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/event/quic/ngx_event_quic_ack.c b/src/event/quic/ngx_event_quic_ack.c index 84e83917f..ecd76f3c3 100644 --- a/src/event/quic/ngx_event_quic_ack.c +++ b/src/event/quic/ngx_event_quic_ack.c @@ -432,8 +432,6 @@ ngx_quic_detect_lost(ngx_connection_t *c) void ngx_quic_resend_frames(ngx_connection_t *c, ngx_quic_send_ctx_t *ctx) { - size_t n; - ngx_buf_t *b; ngx_queue_t *q; ngx_quic_frame_t *f, *start; ngx_quic_stream_t *qs; @@ -497,13 +495,7 @@ ngx_quic_resend_frames(ngx_connection_t *c, ngx_quic_send_ctx_t *ctx) break; } - b = qs->b; - n = qs->fs->received + (b->pos - b->start) + (b->end - b->last); - - if (f->u.max_stream_data.limit < n) { - f->u.max_stream_data.limit = n; - } - + f->u.max_stream_data.limit = qs->recv_max_data; ngx_quic_queue_frame(qc, f); break; |
