|
| 1 | +diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c |
| 2 | +index d9d28cf..0c6dbba 100644 |
| 3 | +--- a/src/http/ngx_http_request.c |
| 4 | ++++ b/src/http/ngx_http_request.c |
| 5 | +@@ -361,7 +361,9 @@ ngx_http_init_connection(ngx_connection_t *c) |
| 6 | + |
| 7 | + /* We already have a UDP packet in the connection buffer, so we don't |
| 8 | + * need to wait for another read event to kick-off the handshake. */ |
| 9 | +- ngx_add_timer(rev, c->listening->post_accept_timeout); |
| 10 | ++ cscf = ngx_http_get_module_srv_conf(hc->conf_ctx, |
| 11 | ++ ngx_http_core_module); |
| 12 | ++ ngx_add_timer(rev, cscf->client_header_timeout); |
| 13 | + ngx_http_quic_handshake(rev); |
| 14 | + return; |
| 15 | + } |
| 16 | +@@ -1102,6 +1104,7 @@ ngx_http_quic_handshake(ngx_event_t *rev) |
| 17 | + ngx_http_connection_t *hc; |
| 18 | + ngx_http_v3_srv_conf_t *qscf; |
| 19 | + ngx_http_ssl_srv_conf_t *sscf; |
| 20 | ++ ngx_http_core_srv_conf_t *cscf; |
| 21 | + |
| 22 | + c = rev->data; |
| 23 | + hc = c->data; |
| 24 | +@@ -1142,7 +1145,9 @@ ngx_http_quic_handshake(ngx_event_t *rev) |
| 25 | + if (rc == NGX_AGAIN) { |
| 26 | + |
| 27 | + if (!rev->timer_set) { |
| 28 | +- ngx_add_timer(rev, c->listening->post_accept_timeout); |
| 29 | ++ cscf = ngx_http_get_module_srv_conf(hc->conf_ctx, |
| 30 | ++ ngx_http_core_module); |
| 31 | ++ ngx_add_timer(rev, cscf->client_header_timeout); |
| 32 | + } |
| 33 | + |
| 34 | + c->ssl->handler = ngx_http_ssl_handshake_handler; |
0 commit comments