comparison src/http/ngx_http.c @ 7762:4e141d0816d4

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.
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 19 Jan 2021 20:32:00 +0300
parents 7e0719fb528b
children 1bde031b59ff 13f7085b90d2
comparison
equal deleted inserted replaced
7761:43a0a9e988be 7762:4e141d0816d4
1712 1712
1713 ls->handler = ngx_http_init_connection; 1713 ls->handler = ngx_http_init_connection;
1714 1714
1715 cscf = addr->default_server; 1715 cscf = addr->default_server;
1716 ls->pool_size = cscf->connection_pool_size; 1716 ls->pool_size = cscf->connection_pool_size;
1717 ls->post_accept_timeout = cscf->client_header_timeout;
1718 1717
1719 clcf = cscf->ctx->loc_conf[ngx_http_core_module.ctx_index]; 1718 clcf = cscf->ctx->loc_conf[ngx_http_core_module.ctx_index];
1720 1719
1721 ls->logp = clcf->error_log; 1720 ls->logp = clcf->error_log;
1722 ls->log.data = &ls->addr_text; 1721 ls->log.data = &ls->addr_text;