comparison src/event/quic/ngx_event_quic_streams.c @ 8905:832723a49026 quic

QUIC: stop processing new client streams at the closing state.
author Sergey Kandaurov <pluknet@nginx.com>
date Fri, 12 Nov 2021 16:29:07 +0300
parents b4c7853b0488
children 41caf5410110
comparison
equal deleted inserted replaced
8904:d2c193aa8480 8905:832723a49026
312 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0, 312 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0,
313 "quic stream id:0x%xL is new", id); 313 "quic stream id:0x%xL is new", id);
314 314
315 qc = ngx_quic_get_connection(c); 315 qc = ngx_quic_get_connection(c);
316 316
317 if (qc->shutdown) { 317 if (qc->shutdown || qc->closing) {
318 return NGX_QUIC_STREAM_GONE; 318 return NGX_QUIC_STREAM_GONE;
319 } 319 }
320 320
321 if (id & NGX_QUIC_STREAM_UNIDIRECTIONAL) { 321 if (id & NGX_QUIC_STREAM_UNIDIRECTIONAL) {
322 322
383 383
384 if (ngx_quic_init_stream(qs) != NGX_OK) { 384 if (ngx_quic_init_stream(qs) != NGX_OK) {
385 return NULL; 385 return NULL;
386 } 386 }
387 387
388 if (qc->shutdown) { 388 if (qc->shutdown || qc->closing) {
389 return NGX_QUIC_STREAM_GONE; 389 return NGX_QUIC_STREAM_GONE;
390 } 390 }
391 } 391 }
392 392
393 return ngx_quic_create_stream(c, id); 393 return ngx_quic_create_stream(c, id);