# HG changeset patch # User Roman Arutyunyan # Date 1644407345 -10800 # Node ID e56a05d6dbd175a3129bbc543a9df41cbed588e1 # Parent dde5cb0205ef8c2a2a3255e7bd369a9c644f2049 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. diff --git a/src/event/quic/ngx_event_quic_streams.c b/src/event/quic/ngx_event_quic_streams.c --- 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_connectio ngx_quic_queue_frame(qc, frame); - if (in) { + if (flow == (off_t) n) { wev->ready = 0; }