Mercurial > hg > nginx-vendor-current
comparison src/http/modules/ngx_http_limit_req_module.c @ 686:2e8a942c8872 NGINX_1_3_6
nginx 1.3.6
*) Feature: the ngx_http_gunzip_filter_module.
*) Feature: the "memcached_gzip_flag" directive.
*) Feature: the "always" parameter of the "gzip_static" directive.
*) Bugfix: in the "limit_req" directive; the bug had appeared in 1.1.14.
Thanks to Charles Chen.
*) Bugfix: nginx could not be built by gcc 4.7 with -O2 optimization if
the --with-ipv6 option was used.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Wed, 12 Sep 2012 00:00:00 +0400 |
parents | 660139fd80ca |
children |
comparison
equal
deleted
inserted
replaced
685:0a9f545d4f4b | 686:2e8a942c8872 |
---|---|
442 } | 442 } |
443 } | 443 } |
444 | 444 |
445 node->key = hash; | 445 node->key = hash; |
446 | 446 |
447 ngx_rbtree_insert(&ctx->sh->rbtree, node); | |
448 | |
449 lr = (ngx_http_limit_req_node_t *) &node->color; | 447 lr = (ngx_http_limit_req_node_t *) &node->color; |
450 | |
451 ngx_queue_insert_head(&ctx->sh->queue, &lr->queue); | |
452 | 448 |
453 lr->len = (u_char) len; | 449 lr->len = (u_char) len; |
454 lr->excess = 0; | 450 lr->excess = 0; |
455 | 451 |
456 ngx_memcpy(lr->data, data, len); | 452 ngx_memcpy(lr->data, data, len); |
453 | |
454 ngx_rbtree_insert(&ctx->sh->rbtree, node); | |
455 | |
456 ngx_queue_insert_head(&ctx->sh->queue, &lr->queue); | |
457 | 457 |
458 if (account) { | 458 if (account) { |
459 lr->last = now; | 459 lr->last = now; |
460 lr->count = 0; | 460 lr->count = 0; |
461 return NGX_OK; | 461 return NGX_OK; |