]> git.kaiwu.me - nginx.git/commit
HTTP/3: adjusted QUIC connection finalization.
authorRoman Arutyunyan <arut@nginx.com>
Mon, 18 Oct 2021 12:22:33 +0000 (15:22 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Mon, 18 Oct 2021 12:22:33 +0000 (15:22 +0300)
commit6118ec73cfef53897d00cc81810ee661321f0057
tree876ce7e6d0584327a043ba6a1910a345cc5759eb
parent1562200066d73a037ecfa4e15548cbcc239b354f
HTTP/3: adjusted QUIC connection finalization.

When an HTTP/3 function returns an error in context of a QUIC stream, it's
this function's responsibility now to finalize the entire QUIC connection
with the right code, if required.  Previously, QUIC connection finalization
could be done both outside and inside such functions.  The new rule follows
a similar rule for logging, leads to cleaner code, and allows to provide more
details about the error.

While here, a few error cases are no longer treated as fatal and QUIC connection
is no longer finalized in these cases.  A few other cases now lead to
stream reset instead of connection finalization.
src/http/v3/ngx_http_v3.c
src/http/v3/ngx_http_v3_request.c
src/http/v3/ngx_http_v3_streams.c
src/http/v3/ngx_http_v3_tables.c