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.
This commit is contained in:
Roman Arutyunyan 2022-02-09 14:49:05 +03:00
parent e2b85c16d0
commit 6920deb708
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}