diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2021-01-19 20:32:00 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2021-01-19 20:32:00 +0300 |
commit | 2ec8fac2d6b8e5023c9894d10bc50d78e63f242c (patch) | |
tree | c7f92dfb2d832edbcbe43ee620f0667e27c0c90c /src/http/ngx_http.c | |
parent | d2c0b9a6c7b0757d5d55db36b1ae656bba056a8c (diff) | |
download | nginx-2ec8fac2d6b8e5023c9894d10bc50d78e63f242c.tar.gz nginx-2ec8fac2d6b8e5023c9894d10bc50d78e63f242c.zip |
Core: removed post_accept_timeout.
Keeping post_accept_timeout in ngx_listening_t is no longer needed since
we've switched to 1 second timeout for deferred accept in 5541:fdb67cfc957d.
Further, using it in HTTP code can result in client_header_timeout being
used from an incorrect server block, notably if address-specific virtual
servers are used along with a wildcard listening socket, or if we've switched
to a different server block based on SNI in SSL handshake.
Diffstat (limited to 'src/http/ngx_http.c')
-rw-r--r-- | src/http/ngx_http.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/http/ngx_http.c b/src/http/ngx_http.c index a35e9bb8a..e1d3d0034 100644 --- a/src/http/ngx_http.c +++ b/src/http/ngx_http.c @@ -1714,7 +1714,6 @@ ngx_http_add_listening(ngx_conf_t *cf, ngx_http_conf_addr_t *addr) cscf = addr->default_server; ls->pool_size = cscf->connection_pool_size; - ls->post_accept_timeout = cscf->client_header_timeout; clcf = cscf->ctx->loc_conf[ngx_http_core_module.ctx_index]; |