diff options
| author | Roman Arutyunyan <arut@nginx.com> | 2022-01-11 18:57:02 +0300 |
|---|---|---|
| committer | Roman Arutyunyan <arut@nginx.com> | 2022-01-11 18:57:02 +0300 |
| commit | a6120a9bc5a50326889755d740be457f379bb215 (patch) | |
| tree | 19c9055e92403b7fa1010c13e3905116b5ab6ce1 | |
| parent | 38cfe35779e4a8a6288d61bdf4a2e892dc0ce046 (diff) | |
| download | nginx-a6120a9bc5a50326889755d740be457f379bb215.tar.gz nginx-a6120a9bc5a50326889755d740be457f379bb215.tar.bz2 | |
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.
| -rw-r--r-- | src/event/quic/ngx_event_quic_streams.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event/quic/ngx_event_quic_streams.c b/src/event/quic/ngx_event_quic_streams.c index 989c33119..a74a43c43 100644 --- 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_connection_t *c, ngx_quic_header_t *pkt, return NGX_ERROR; } - if (last <= qs->recv_offset) { + if (last < qs->recv_offset) { return NGX_OK; } |
