]> git.kaiwu.me - nginx.git/commit
QUIC: reject streams which we could not create.
authorRoman Arutyunyan <arut@nginx.com>
Thu, 11 Nov 2021 16:07:00 +0000 (19:07 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Thu, 11 Nov 2021 16:07:00 +0000 (19:07 +0300)
commit50dd9ba7e85a8d4eeecaad8776f83adc607fd132
tree0d5450012d518fb8c1a170325710ad1bc26b9203
parent54655cebbb99693c7f05b689eb450a2c47ca79eb
QUIC: reject streams which we could not create.

The reasons why a stream may not be created by server currently include hitting
worker_connections limit and memory allocation error.  Previously in these
cases the entire QUIC connection was closed and all its streams were shut down.
Now the new stream is rejected and existing streams continue working.

To reject an HTTP/3 request stream, RESET_STREAM and STOP_SENDING with
H3_REQUEST_REJECTED error code are sent to client.  HTTP/3 uni streams and
Stream streams are not rejected.
src/event/quic/ngx_event_quic.h
src/event/quic/ngx_event_quic_streams.c
src/http/modules/ngx_http_quic_module.c
src/stream/ngx_stream_quic_module.c