Welcome! Log In Create A New Profile

Advanced

Re: [PATCH] Conditional application of limit_conn directive

Anonymous User
September 22, 2020 10:40AM
Hello!

...
Maxim Dounin писал 2020-09-22 23:19:
> Quoting the documentation (http://nginx.org/r/limit_conn_zone):
>
> : Requests with an empty key value are not accounted.
>
> That is, limit_conn can be used conditionally without any
> code changes. The same applies to limit_req.

Yes, I know about that feature. The problem with that approach is a
complication of the
process to compute the value of a "key". We tried that before (with a
cascade of "map" directives)
and configuration became unreadable and very hard to understand when you
add another indirection
level to force a "key" to be an empty value depending on another
condition. That was an incentive
for this patch.
This is especially true when there are several "limit_conn" directives
in one location
to limit user sessions by different identification attributes (and all
of those attirbutes
need to be "emptied" on a condition).

With best regards,
Sergei Turchanov.
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] Conditional application of limit_conn directive

Anonymous User 528 September 22, 2020 02:54AM

Re: [PATCH] Conditional application of limit_conn directive

Maxim Dounin 199 September 22, 2020 09:20AM

Re: [PATCH] Conditional application of limit_conn directive

Anonymous User 205 September 22, 2020 10:40AM

Re: [PATCH] Conditional application of limit_conn directive

Anonymous User 184 October 12, 2020 12:12AM

Re: [PATCH] Conditional application of limit_conn directive

Maxim Dounin 193 October 12, 2020 12:50PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 154
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready