summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules/ngx_http_limit_conn_module.c (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2019-11-18Limit conn: added shared context.Roman Arutyunyan1-47/+43
Previously only an rbtree was associated with a limit_conn. To make it possible to associate more data with a limit_conn, shared context is introduced similar to limit_req. Also, shared pool pointer is kept in a way similar to limit_req.
2019-11-18Limit conn: $limit_conn_status variable.Roman Arutyunyan1-3/+73
The variable takes one of the values: PASSED, REJECTED or REJECTED_DRY_RUN.
2019-11-19Limit conn: limit_conn_dry_run directive.Roman Arutyunyan1-1/+23
A new directive limit_conn_dry_run allows enabling the dry run mode. In this mode connections are not rejected, but reject status is logged as usual.
2016-03-31Fixed logging.Sergey Kandaurov1-2/+2
2014-09-24Limit conn: aligned field names in structures.Valentin Bartenev1-11/+11
No functional changes.
2014-09-24Limit conn: use complex value in limit_conn_zone (ticket #121).Valentin Bartenev1-67/+54
One intentional side effect of this change is that key is allowed only in the first position. Previously, it was possible to specify the key variable at any position, but that was never documented, and is contrary to nginx configuration practice for positional parameters.
2014-09-24Limit conn: removed deprecated "limit_zone" directive.Valentin Bartenev1-84/+0
It's deprecated since 260d591cb6a3 (1.1.8). The "limit_conn_zone" directive should be used instead.
2013-03-18The limit_req_status and limit_conn_status directives.Maxim Dounin1-2/+18
Patch by Nick Marden, with minor changes.
2012-12-17Added checks that disallow adding a variable with an empty name.Ruslan Ermilov1-2/+2
Added variable name syntax checks to "geo" and "map" directives.
2012-12-13Fixed variable syntax checking in "set", "geo", "limit_conn_zone",Ruslan Ermilov1-2/+2
and "perl_set" directives.
2012-08-08Added three missing checks for NULL after ngx_array_push() calls.Valentin Bartenev1-0/+4
Found by Coverity.
2012-07-20Fixed debugging messages to account that limit_zone was renamed to limit_conn.Ruslan Ermilov1-2/+2
2012-02-28Fixed spelling in single-line comments.Ruslan Ermilov1-2/+2
2012-02-27Fix of rbtree lookup on hash collisions.Maxim Dounin1-12/+7
Previous code incorrectly assumed that nodes with identical keys are linked together. This might not be true after tree rebalance. Patch by Lanshun Zhou.
2012-02-10Limit conn: returned to the old behavior of using the first actual limit onValentin Bartenev1-2/+2
the way. It was unintentionally changed in r4272, so that it could only limit the first location where the processing of the request has reached PREACCESS phase.
2012-01-18Copyright updated.Maxim Konovalov1-0/+1
2011-12-25Fixed limit_conn_log_level/limit_req_log_level inheritance.Valentin Bartenev1-1/+1
The directives did not work if there were no limit_conn/limit_req specified on the same level.
2011-11-14Renamed ngx_http_limit_zone_module to ngx_http_limit_conn_module.Valentin Bartenev1-102/+102
2011-11-10Limit zone: added the "limit_conn_zone" directive.Valentin Bartenev1-3/+132
It supersedes old "limit_zone" directive (deprecated accordingly) and uses syntax consistent with the "limit_req_zone" directive.
2011-11-10Limit zone: support for multiple "limit_conn" limits.Valentin Bartenev1-73/+117
2011-11-10Limit zone: rbtree lookup moved to a separate function.Valentin Bartenev1-51/+73
No functional changes.
2009-10-06limit_conn_log_levelIgor Sysoev1-1/+22
2009-06-02return NULL instead of NGX_CONF_ERROR on a create conf failureIgor Sysoev1-1/+1
2009-04-18support attaching to an existent Win32 shared memoryIgor Sysoev1-0/+8
2009-04-16move zone name from ngx_shm_zone_t to ngx_shm_t to use Win32 shared memoryIgor Sysoev1-4/+5
2009-03-27delete duplicate error loggingIgor Sysoev1-5/+0
2009-03-27improve ngx_slab_alloc() error loggingIgor Sysoev1-0/+10
2008-12-08log 503 error reasonIgor Sysoev1-0/+9
2008-12-08test duplicate limit_connIgor Sysoev1-0/+4
2007-12-17optimize rbtree initialization and insertIgor Sysoev1-35/+14
2007-08-20use %v for ngx_variable_value_t in ngx_sprintf(),Igor Sysoev1-1/+1
this fixes nginx on FreeBSD/sparc64
2007-01-16fix comparisonIgor Sysoev1-1/+1
2007-01-12ngx_strn2cmp() > ngx_memn2cmp()Igor Sysoev1-2/+2
2007-01-12fix duplicate rbtree keys caseIgor Sysoev1-5/+65
2007-01-11stop rbtree search early if equal hash was foundIgor Sysoev1-2/+9
2007-01-11test length of variable and number of connectionsIgor Sysoev1-2/+20
2007-01-09fix connection counter in subrequestsIgor Sysoev1-1/+1
2007-01-09fix typoIgor Sysoev1-1/+1
2007-01-09do not count connection for subrequestIgor Sysoev1-1/+1
2007-01-09pass the inherited shm_zone dataIgor Sysoev1-2/+19
2007-01-07new syntaxIgor Sysoev1-48/+71
2007-01-07count connection once per requestIgor Sysoev1-0/+6
2007-01-07fix key length and alignmentIgor Sysoev1-7/+8
2007-01-06ngx_http_limit_zone_moduleIgor Sysoev1-0/+397