Mercurial > hg > nginx
comparison src/http/v3/ngx_http_v3_request.c @ 9067:6bb884dc7291 quic
HTTP/3: insert count block timeout.
Previously, there was no timeout for a request stream blocked on insert count,
which could result in infinite wait. Now client_header_timeout is set when
stream is first blocked.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Thu, 05 Jan 2023 19:03:22 +0400 |
parents | eaa8dc3788e1 |
children | c851a2ed5ce8 |
comparison
equal
deleted
inserted
replaced
9066:eaa8dc3788e1 | 9067:6bb884dc7291 |
---|---|
553 if (rev->error) { | 553 if (rev->error) { |
554 ngx_http_finalize_request(r, NGX_HTTP_BAD_REQUEST); | 554 ngx_http_finalize_request(r, NGX_HTTP_BAD_REQUEST); |
555 break; | 555 break; |
556 } | 556 } |
557 | 557 |
558 if (!rev->timer_set) { | |
559 cscf = ngx_http_get_module_srv_conf(r, | |
560 ngx_http_core_module); | |
561 ngx_add_timer(rev, cscf->client_header_timeout); | |
562 } | |
563 | |
558 if (ngx_handle_read_event(rev, 0) != NGX_OK) { | 564 if (ngx_handle_read_event(rev, 0) != NGX_OK) { |
559 ngx_http_close_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); | 565 ngx_http_close_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); |
560 } | 566 } |
561 | 567 |
562 break; | 568 break; |