]> git.kaiwu.me - nginx.git/commit
QUIC: set stream error flag on reset.
authorRoman Arutyunyan <arut@nginx.com>
Tue, 10 Jan 2023 13:42:40 +0000 (17:42 +0400)
committerRoman Arutyunyan <arut@nginx.com>
Tue, 10 Jan 2023 13:42:40 +0000 (17:42 +0400)
commitd929470685239762330d61a4be0200edc2ad315f
treeb7d970f22c35c0928f582fba1e7d3390b00647f3
parent77fc6b7fb97f41b900d36a3180cd06c60ae48e52
QUIC: set stream error flag on reset.

Now, when RESET_STREAM is sent or received, or when streams are closed,
stream connection error flag is set.  Previously, only stream state was
changed, which resulted in setting the error flag only after calling
recv()/send()/send_chain().  However, there are cases when none of these
functions is called, but it's still important to know if the stream is being
closed.  For example, when an HTTP/3 request stream is blocked on insert count,
receiving RESET_STREAM should trigger stream closure, which was not the case.

The change also fixes ngx_http_upstream_check_broken_connection() and
ngx_http_test_reading() with QUIC streams.
src/event/quic/ngx_event_quic_streams.c