changeset 8962:47f45a98f892 quic

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.
author Roman Arutyunyan <arut@nginx.com>
date Tue, 11 Jan 2022 18:57:02 +0300
parents aa3c59524e2f
children 5acd0d89d8c2
files src/event/quic/ngx_event_quic_streams.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
     }