Mercurial > hg > nginx
comparison src/http/modules/ngx_http_limit_conn_module.c @ 6480:f01ab2dbcfdc
Fixed logging.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 31 Mar 2016 02:33:57 +0300 |
parents | 1e6bf87a7289 |
children | 359b0ea2b067 |
comparison
equal
deleted
inserted
replaced
6479:dc92298b1852 | 6480:f01ab2dbcfdc |
---|---|
230 | 230 |
231 lc->conn++; | 231 lc->conn++; |
232 } | 232 } |
233 | 233 |
234 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, | 234 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, |
235 "limit conn: %08XD %d", node->key, lc->conn); | 235 "limit conn: %08Xi %d", node->key, lc->conn); |
236 | 236 |
237 ngx_shmtx_unlock(&shpool->mutex); | 237 ngx_shmtx_unlock(&shpool->mutex); |
238 | 238 |
239 cln = ngx_pool_cleanup_add(r->pool, | 239 cln = ngx_pool_cleanup_add(r->pool, |
240 sizeof(ngx_http_limit_conn_cleanup_t)); | 240 sizeof(ngx_http_limit_conn_cleanup_t)); |
349 lc = (ngx_http_limit_conn_node_t *) &node->color; | 349 lc = (ngx_http_limit_conn_node_t *) &node->color; |
350 | 350 |
351 ngx_shmtx_lock(&shpool->mutex); | 351 ngx_shmtx_lock(&shpool->mutex); |
352 | 352 |
353 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, lccln->shm_zone->shm.log, 0, | 353 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, lccln->shm_zone->shm.log, 0, |
354 "limit conn cleanup: %08XD %d", node->key, lc->conn); | 354 "limit conn cleanup: %08Xi %d", node->key, lc->conn); |
355 | 355 |
356 lc->conn--; | 356 lc->conn--; |
357 | 357 |
358 if (lc->conn == 0) { | 358 if (lc->conn == 0) { |
359 ngx_rbtree_delete(ctx->rbtree, node); | 359 ngx_rbtree_delete(ctx->rbtree, node); |