comparison src/event/quic/ngx_event_quic_streams.c @ 9045:c6580dce98a8 quic

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.
author Roman Arutyunyan <arut@nginx.com>
date Wed, 23 Nov 2022 18:50:26 +0400
parents 489c2dcb3180
children aaca8e111959
comparison
equal deleted inserted replaced
9044:2b3a8d5795c9 9045:c6580dce98a8
1145 1145
1146 if (qs->connection == NULL) { 1146 if (qs->connection == NULL) {
1147 return ngx_quic_close_stream(qs); 1147 return ngx_quic_close_stream(qs);
1148 } 1148 }
1149 1149
1150 if (f->offset == qs->recv_offset) { 1150 if (f->offset <= qs->recv_offset) {
1151 ngx_quic_set_event(qs->connection->read); 1151 ngx_quic_set_event(qs->connection->read);
1152 } 1152 }
1153 1153
1154 return NGX_OK; 1154 return NGX_OK;
1155 } 1155 }