# HG changeset patch # User Roman Arutyunyan # Date 1641916622 -10800 # Node ID 47f45a98f892ca22e73b75913de1e5b8b22b8503 # Parent aa3c59524e2f00605bbdd0197d7e4aac379ab364 QUIC: fixed handling STREAM FIN. Previously, when a STREAM FIN frame with no data bytes was received after all prior stream data were already read by the application layer, the frame was ignored and eof was not reported to the application. 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 @@ -1074,7 +1074,7 @@ ngx_quic_handle_stream_frame(ngx_connect return NGX_ERROR; } - if (last <= qs->recv_offset) { + if (last < qs->recv_offset) { return NGX_OK; }