Olivier Houchard
07425de717
BUG/MEDIUM: port_range: Make the ring buffer lock-free.
...
Port range uses a ring buffer, and unfortunately, when making haproxy
multithreaded, it's been overlooked, and the ring buffer is not thread-safe.
When specifying a source range, 2 or more threads could pick the same
port, and of course only one of them could use the port, the others would
always fail the connection.
To fix this, make it a lock-free ring buffer. This is easier than usual
because we know the ring buffer can never be full.
This should be backported to 1.8 and 1.9.
2019-04-30 15:10:17 +02:00
..
2015-04-06 11:23:56 +02:00
2019-04-23 11:41:52 +02:00
2019-04-30 14:55:18 +02:00
2019-04-24 16:04:23 +02:00
2019-02-26 16:27:05 +01:00
2014-03-17 18:06:06 +01:00
2019-01-14 19:33:17 +01:00
2017-11-24 17:49:53 +01:00
2019-03-25 06:24:43 +01:00
2019-01-14 11:15:11 +01:00
2018-10-28 13:51:39 +01:00
2018-07-19 16:23:43 +02:00
2019-04-18 14:56:24 +02:00
2018-12-14 14:00:25 +01:00
2019-04-23 11:33:48 +02:00
2018-12-02 18:43:25 +01:00
2018-12-01 17:37:27 +01:00
2010-08-10 14:01:09 +02:00
2019-04-18 19:52:03 +02:00
2006-12-04 02:20:02 +01:00
2018-12-11 17:15:13 +01:00
2018-12-11 17:15:04 +01:00
2019-01-14 19:33:17 +01:00
2012-02-21 22:27:27 +01:00
2009-10-26 21:10:04 +01:00
2009-10-26 21:10:04 +01:00
2017-10-31 13:58:31 +01:00
2019-03-07 14:08:26 +01:00
2019-04-30 09:25:09 +02:00
2016-02-20 15:33:06 +01:00
2016-03-30 15:41:15 +02:00
2019-04-23 11:35:56 +02:00
2017-11-13 11:38:17 +01:00
2019-03-01 09:33:26 +01:00
2009-01-25 13:49:53 +01:00
2019-04-30 15:10:17 +02:00
2019-03-15 14:34:59 +01:00
2015-06-13 22:07:35 +02:00
2019-03-05 11:04:23 +01:00
2018-09-12 07:12:27 +02:00
2019-01-14 19:33:17 +01:00
2018-08-10 15:06:27 +02:00
2018-09-11 10:30:25 +02:00
2019-02-26 18:17:32 +01:00
2018-12-28 19:16:03 +01:00
2018-10-26 04:54:40 +02:00
2010-08-27 18:00:40 +02:00
2019-04-29 16:02:05 +02:00
2019-04-15 10:09:54 +02:00
2019-04-23 11:41:52 +02:00
2018-01-31 09:40:05 +01:00
2019-03-25 06:55:23 +01:00
2019-04-24 16:04:23 +02:00
2019-04-30 14:36:47 +02:00
2006-06-29 18:54:54 +02:00
2017-11-13 11:38:17 +01:00