comparison src/event/quic/ngx_event_quic_ack.c @ 9052:2e51cf3ffd90 quic

QUIC: defer stream removal until all its data is acked. Previously, stream was kept alive until all its data is sent. This resulted in disabling retransmission of final part of stream when QUIC connection was closed right after closing stream connection.
author Roman Arutyunyan <arut@nginx.com>
date Mon, 22 Aug 2022 15:33:23 +0400
parents 2b3a8d5795c9
children 52cddd44ec11
comparison
equal deleted inserted replaced
9051:37d5dddabaea 9052:2e51cf3ffd90
251 case NGX_QUIC_FT_ACK_ECN: 251 case NGX_QUIC_FT_ACK_ECN:
252 ngx_quic_drop_ack_ranges(c, ctx, f->u.ack.largest); 252 ngx_quic_drop_ack_ranges(c, ctx, f->u.ack.largest);
253 break; 253 break;
254 254
255 case NGX_QUIC_FT_STREAM: 255 case NGX_QUIC_FT_STREAM:
256 case NGX_QUIC_FT_RESET_STREAM:
256 ngx_quic_handle_stream_ack(c, f); 257 ngx_quic_handle_stream_ack(c, f);
257 break; 258 break;
258 } 259 }
259 260
260 if (f->pnum == max) { 261 if (f->pnum == max) {