Jerome Magnin
bee00ad080
BUG/MINOR: stream: don't mistake match rules for store-request rules
...
In process_sticking_rules() we only want to apply the first store-request
rule for a given table, but when doing so we need to make sure we only
count actual store-request rules when we list the sticking rules.
Failure to do so leads to not being able to write store-request and match
sticking rules in any order as a match rule after a store-request rule
will be ignored.
The following configuration reproduces the issue:
global
stats socket /tmp/foobar
defaults
mode http
frontend in
bind *:8080
default_backend bar
backend bar
server s1 127.0.0.1:21212
server s2 127.0.0.1:21211
stick store-request req.hdr(foo)
stick match req.hdr(foo)
stick-table type string size 10
listen foo
bind *:21212
bind *:21211
http-request deny deny_status 200 if { dst_port 21212 }
http-request deny
This patch fixes issue #448 and should be backported as far as 1.6.
2020-01-16 18:07:52 +01:00
..
2019-07-19 09:24:12 +02:00
2019-09-13 10:08:44 +02:00
2019-08-07 10:32:31 +02:00
2019-08-09 11:26:10 +02:00
2019-10-11 16:05:57 +02:00
2019-06-07 19:32:02 +02:00
2019-09-08 12:20:13 +02:00
2019-12-30 18:18:28 +01:00
2019-01-14 19:32:15 +01:00
2018-11-26 19:50:32 +01:00
2019-10-29 13:09:14 +01:00
2019-08-22 20:21:00 +02:00
2019-12-06 17:20:26 +01:00
2019-12-19 09:24:57 +01:00
2019-12-03 11:49:00 +01:00
2020-01-07 10:51:15 +01:00
2019-12-30 15:18:16 +01:00
2019-06-07 15:37:47 +02:00
2020-01-16 16:26:41 +01:00
2019-05-20 21:14:14 +02:00
2019-12-27 16:38:47 +01:00
2019-07-19 09:24:12 +02:00
2019-12-06 17:20:26 +01:00
2019-06-11 09:54:12 +02:00
2020-01-08 06:10:38 +01:00
2019-12-27 16:38:47 +01:00
2019-12-27 14:04:33 +01:00
2019-12-27 14:04:33 +01:00
2019-12-27 14:04:33 +01:00
2019-09-06 19:09:56 +02:00
2019-12-02 10:38:52 +01:00
2019-09-17 10:18:54 +02:00
2019-12-20 08:09:28 +01:00
2019-11-15 13:43:08 +01:00
2020-01-15 10:58:17 +01:00
2019-10-29 10:33:13 +01:00
2019-11-15 13:43:08 +01:00
2017-10-31 18:01:18 +01:00
2019-07-19 13:50:09 +02:00
2019-12-11 16:46:16 +01:00
2020-01-06 13:58:21 +01:00
2019-11-25 11:11:32 +01:00
2020-01-14 18:10:29 +01:00
2020-01-16 08:23:42 +01:00
2019-10-17 07:15:17 +02:00
2019-10-10 11:30:07 +02:00
2020-01-14 10:12:31 +01:00
2019-04-01 07:44:56 +02:00
2019-04-01 07:44:56 +02:00
2019-04-01 07:44:56 +02:00
2019-04-01 07:44:56 +02:00
2018-11-26 19:50:32 +01:00
2019-12-19 09:24:57 +01:00
2020-01-07 10:50:28 +01:00
2019-10-31 08:47:31 +01:00
2019-10-14 22:28:50 +02:00
2019-12-11 16:46:16 +01:00
2019-07-19 09:24:12 +02:00
2020-01-08 16:15:23 +01:00
2019-10-14 22:28:50 +02:00
2019-08-01 11:35:29 +02:00
2019-07-05 14:26:15 +02:00
2019-09-06 17:13:44 +02:00
2019-05-27 10:29:59 +02:00
2019-03-11 17:02:38 +01:00
2020-01-08 19:39:09 +01:00
2019-12-11 12:05:39 +01:00
2016-01-11 07:31:35 +01:00
2019-08-09 11:26:10 +02:00
2019-07-09 10:40:33 +02:00
2019-12-11 16:46:16 +01:00
2020-01-15 19:13:32 +01:00
2020-01-14 13:55:04 +01:00
2019-10-29 14:15:20 +01:00
2019-07-15 16:43:16 +02:00
2019-12-11 14:26:53 +01:00
2019-09-25 23:33:52 +02:00
2019-10-23 07:27:25 +02:00
2019-07-19 09:24:12 +02:00
2019-11-20 13:38:13 +01:00
2019-04-15 21:55:48 +02:00
2019-07-24 16:45:02 +02:00
2019-12-27 16:38:43 +01:00
2019-12-10 19:09:15 +01:00
2019-12-11 16:29:10 +01:00
2019-07-24 16:45:02 +02:00
2020-01-16 07:04:05 +01:00
2019-11-14 14:58:39 +01:00
2020-01-15 19:16:23 +01:00
2019-05-07 06:58:15 +02:00
2019-11-15 15:48:12 +01:00
2019-12-19 09:19:13 +01:00
2020-01-09 05:54:48 +01:00
2020-01-07 18:15:32 +01:00
2019-04-01 07:44:56 +02:00
2018-12-02 18:40:29 +01:00
2018-12-02 18:39:52 +01:00
2019-11-15 15:48:12 +01:00
2020-01-13 19:51:52 +01:00
2019-10-29 10:19:34 +01:00
2019-12-02 11:40:04 +01:00
2019-11-15 18:24:19 +01:00
2020-01-09 15:39:06 +01:00
2020-01-16 18:07:52 +01:00
2019-12-19 14:42:22 +01:00
2019-11-06 10:14:32 +01:00
2019-09-26 08:13:38 +02:00
2019-11-25 19:47:22 +01:00
2019-10-10 11:30:07 +02:00
2019-07-19 09:24:12 +02:00
2019-10-16 09:56:57 +02:00
2019-10-17 07:15:17 +02:00
2019-10-15 10:47:31 +02:00
2019-06-14 14:42:29 +02:00
2019-04-01 07:44:56 +02:00