aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2022-02-09 14:49:05 +0300
committerRoman Arutyunyan <arut@nginx.com>2022-02-09 14:49:05 +0300
commit90b19bf65de489d7f729c2876ff5cd63670111f9 (patch)
tree1f8025e5db2d21ce8c2523845c1c0d043be5e9ae /src
parent78ec75ad2a9a31ad9ef5fb5cc7cd3d0b30ec8181 (diff)
downloadnginx-90b19bf65de489d7f729c2876ff5cd63670111f9.tar.gz
nginx-90b19bf65de489d7f729c2876ff5cd63670111f9.zip
QUIC: fixed resetting stream wev->ready flag.
Previously, the flag could be reset after send_chain() with a limit, even though there was room for more data. The application then started waiting for a write event notification, which never happened. Now the wev->ready flag is only reset when flow control is exhausted.
Diffstat (limited to 'src')
-rw-r--r--src/event/quic/ngx_event_quic_streams.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event/quic/ngx_event_quic_streams.c b/src/event/quic/ngx_event_quic_streams.c
index c0f32394d..8b13f6edc 100644
--- a/src/event/quic/ngx_event_quic_streams.c
+++ b/src/event/quic/ngx_event_quic_streams.c
@@ -883,7 +883,7 @@ ngx_quic_stream_send_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit)
ngx_quic_queue_frame(qc, frame);
- if (in) {
+ if (flow == (off_t) n) {
wev->ready = 0;
}