changeset 10:06bd0e50e696

Keepalive: log saving connection.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 10 Nov 2008 16:09:44 +0300
parents cf65cec7e14b
children 15530a464dba
files ngx_http_upstream_keepalive_module.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);