comparison src/stream/ngx_stream_quic_module.c @ 8906:41caf5410110 quic

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.
author Roman Arutyunyan <arut@nginx.com>
date Thu, 11 Nov 2021 19:07:00 +0300
parents 4b2d259bdadd
children d6ef13c5fd8e
comparison
equal deleted inserted replaced
8905:832723a49026 8906:41caf5410110
239 * conf->tp.original_dcid = { 0, NULL }; 239 * conf->tp.original_dcid = { 0, NULL };
240 * conf->tp.initial_scid = { 0, NULL }; 240 * conf->tp.initial_scid = { 0, NULL };
241 * conf->tp.retry_scid = { 0, NULL }; 241 * conf->tp.retry_scid = { 0, NULL };
242 * conf->tp.preferred_address = NULL 242 * conf->tp.preferred_address = NULL
243 * conf->host_key = { 0, NULL } 243 * conf->host_key = { 0, NULL }
244 * conf->stream_close_code = 0;
245 * conf->stream_reject_code_uni = 0;
246 * conf->stream_reject_code_bidi= 0;
244 */ 247 */
245 248
246 conf->tp.max_idle_timeout = NGX_CONF_UNSET_MSEC; 249 conf->tp.max_idle_timeout = NGX_CONF_UNSET_MSEC;
247 conf->tp.max_ack_delay = NGX_CONF_UNSET_MSEC; 250 conf->tp.max_ack_delay = NGX_CONF_UNSET_MSEC;
248 conf->tp.max_udp_payload_size = NGX_CONF_UNSET_SIZE; 251 conf->tp.max_udp_payload_size = NGX_CONF_UNSET_SIZE;