]> git.kaiwu.me - nginx.git/commit
Core: added a warning about reusing connections.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 10 Aug 2020 15:52:59 +0000 (18:52 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 10 Aug 2020 15:52:59 +0000 (18:52 +0300)
commite240d88d4497afd2493358e938f74486750bc776
treef0e06f9c7737808166996b689102b96b5cb8cbe1
parenteae2b2fdf15c52f058c0c08763a5c373997d0535
Core: added a warning about reusing connections.

Previously, reusing connections happened silently and was only
visible in monitoring systems.  This was shown to be not very user-friendly,
and administrators often didn't realize there were too few connections
available to withstand the load, and configured timeouts (keepalive_timeout
and http2_idle_timeout) were effectively reduced to keep things running.

To provide at least some information about this, a warning is now logged
(at most once per second, to avoid flooding the logs).
src/core/ngx_connection.c
src/core/ngx_cycle.h