]> git.kaiwu.me - nginx.git/commitdiff
QUIC: fixed handling STREAM FIN.
authorRoman Arutyunyan <arut@nginx.com>
Tue, 11 Jan 2022 15:57:02 +0000 (18:57 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Tue, 11 Jan 2022 15:57:02 +0000 (18:57 +0300)
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.

src/event/quic/ngx_event_quic_streams.c

index 989c33119b9784c349be57038b5dc385a04b6f6e..a74a43c43918df6c1f8719ede3654094ccf4fdf9 100644 (file)
@@ -1074,7 +1074,7 @@ ngx_quic_handle_stream_frame(ngx_connection_t *c, ngx_quic_header_t *pkt,
         return NGX_ERROR;
     }
 
-    if (last <= qs->recv_offset) {
+    if (last < qs->recv_offset) {
         return NGX_OK;
     }