# HG changeset patch # User Maxim Dounin # Date 1226322584 -10800 # Node ID 06bd0e50e6960297793f32b73d8b941aa3b63e70 # Parent cf65cec7e14b2569b571b23a5ce466c9384eb223 Keepalive: log saving connection. diff --git a/ngx_http_upstream_keepalive_module.c b/ngx_http_upstream_keepalive_module.c --- a/ngx_http_upstream_keepalive_module.c +++ b/ngx_http_upstream_keepalive_module.c @@ -275,6 +275,9 @@ ngx_http_upstream_free_keepalive_peer(ng { c = pc->connection; + ngx_log_debug1(NGX_LOG_DEBUG_HTTP, pc->log, 0, + "free keepalive peer: saving connection %p", c); + if (ngx_queue_empty(&kp->conf->free)) { q = ngx_queue_last(&kp->conf->cache);