diff options
author | Roman Arutyunyan <arut@nginx.com> | 2022-11-23 18:50:26 +0400 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2022-11-23 18:50:26 +0400 |
commit | b015d4965ef296b7b31adae9165c5c049cf9026c (patch) | |
tree | 0cfbcdde852bc198ca47cceb99bba882431d1c61 /src | |
parent | bc79d773f9d9443a9654930a5da882c92e857038 (diff) | |
download | nginx-b015d4965ef296b7b31adae9165c5c049cf9026c.tar.gz nginx-b015d4965ef296b7b31adae9165c5c049cf9026c.zip |
QUIC: fixed triggering stream read event (ticket #2409).
If a client packet carrying a 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.
Diffstat (limited to 'src')
-rw-r--r-- | src/event/quic/ngx_event_quic_streams.c | 2 |
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 78650b04f..73272ff95 100644 --- 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_connection_t *c, ngx_quic_header_t *pkt, 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); } |