Mercurial > hg > ngx_http_upstream_keepalive
comparison ngx_http_upstream_keepalive_module.c @ 10:06bd0e50e696
Keepalive: log saving connection.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 10 Nov 2008 16:09:44 +0300 |
parents | 565939797f5c |
children | 15530a464dba |
comparison
equal
deleted
inserted
replaced
9:cf65cec7e14b | 10:06bd0e50e696 |
---|---|
273 if (!(state & NGX_PEER_FAILED) | 273 if (!(state & NGX_PEER_FAILED) |
274 && pc->connection != NULL) | 274 && pc->connection != NULL) |
275 { | 275 { |
276 c = pc->connection; | 276 c = pc->connection; |
277 | 277 |
278 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, pc->log, 0, | |
279 "free keepalive peer: saving connection %p", c); | |
280 | |
278 if (ngx_queue_empty(&kp->conf->free)) { | 281 if (ngx_queue_empty(&kp->conf->free)) { |
279 | 282 |
280 q = ngx_queue_last(&kp->conf->cache); | 283 q = ngx_queue_last(&kp->conf->cache); |
281 ngx_queue_remove(q); | 284 ngx_queue_remove(q); |
282 | 285 |