]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[MINOR] tcp: src_count acl does not have a permanent result
authorWilly Tarreau <w@1wt.eu>
Tue, 15 Jun 2010 15:57:36 +0000 (17:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 10 Aug 2010 16:04:11 +0000 (18:04 +0200)
This ACL's count can change along the session's life because it depends
on other sessions' activity. Switch it to volatile since any session
could appear while evaluating the ACLs.

src/proto_tcp.c

index 788c98167b14ef89ff3c1e628f3a92f10543ea9e..24906be63ae8ce908784ab25326328eeb0629bb8 100644 (file)
@@ -1088,8 +1088,8 @@ static struct acl_kw_list acl_kws = {{ },{
        { "src",        acl_parse_ip,    acl_fetch_src,      acl_match_ip,  ACL_USE_TCP4_PERMANENT|ACL_MAY_LOOKUP },
        { "dst",        acl_parse_ip,    acl_fetch_dst,      acl_match_ip,  ACL_USE_TCP4_PERMANENT|ACL_MAY_LOOKUP },
        { "dst_port",   acl_parse_int,   acl_fetch_dport,    acl_match_int, ACL_USE_TCP_PERMANENT  },
-       { "src_count",  acl_parse_int,   acl_fetch_src_count,acl_match_int, ACL_USE_TCP4_PERMANENT },
-       { "src_update_count",  acl_parse_int,   acl_fetch_src_update_count, acl_match_int, ACL_USE_TCP4_PERMANENT },
+       { "src_count",  acl_parse_int,   acl_fetch_src_count,acl_match_int, ACL_USE_TCP4_VOLATILE },
+       { "src_update_count",  acl_parse_int,   acl_fetch_src_update_count, acl_match_int, ACL_USE_TCP4_VOLATILE },
        { NULL, NULL, NULL, NULL },
 }};