# HG changeset patch # User Roman Arutyunyan # Date 1669195987 -14400 # Wed Nov 23 13:33:07 2022 +0400 # Branch quic # Node ID 93fbae5d47089bfebfee1d059497f9576c5371da # Parent 6cf8ed15fd00668b7efa0226c06f47d7238f26e8 Fixed triggering stream read event (ticket #2409). If a client packet carrying stream data frame is not acked due to packet loss, the stream data is retransmitted later by client. It's also possible that the retransmitted range is bigger than before due to more stream data being available by then. If the original data was read out by the application, there would be no read event triggered by the retransmitted frame, even though it contains new data. 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 @@ -1147,7 +1147,7 @@ ngx_quic_handle_stream_frame(ngx_connect return ngx_quic_close_stream(qs); } - if (f->offset == qs->recv_offset) { + if (f->offset <= qs->recv_offset) { ngx_quic_set_event(qs->connection->read); }