William Dauchy
80babceacf
listen-netns: fix worker case for DTLS
...
while using udp, we later open a file descriptor for the worker. With a
listen netns config, I overlooked this case which oblige me to move the
struct containing the file descriptor in the main one. Then I can access
them from each worker to make it possible to open the socket in the
correct netns. I also need to keep the netns fd open during the whole
life of the process.
the issue was not visible on a tcp-only case, but while using udp you
can see logs such as:
main[user]: x.x.x.x:54024 bind UDP to 0.0.0.0:443: Cannot assign requested address
worker[user]: x.x.x.x setting up DTLS-PSK connection
main[user]: x.x.x.x:54024 bind UDP to 0.0.0.0:443: Cannot assign requested address
update tests to reflects that:
- instead of creating our own netns, use the one created in common.sh
- we start server in ns1, but listen in ns2, and test client from ns3
(we don't want to listen in ns1 to test listen-ns)
Signed-off-by: William Dauchy <w.dauchy@criteo.com >
2020-09-20 21:49:08 +02:00
..
2020-04-10 23:06:07 +02:00
2020-09-20 21:49:08 +02:00
2020-08-09 21:32:27 +02:00
2019-11-17 11:06:47 +01:00
2015-02-19 17:20:52 +01:00
2015-02-19 11:47:20 +01:00
2019-01-19 18:19:09 +01:00
2019-01-19 18:19:09 +01:00
2018-07-20 22:06:11 +02:00
2018-07-20 22:06:11 +02:00
2020-08-09 13:14:22 +02:00
2018-03-06 20:42:31 +01:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-03-09 21:48:04 +01:00
2020-03-16 22:21:37 +01:00
2020-08-05 23:05:24 +02:00
2017-03-24 20:07:47 +01:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-04-19 16:30:12 -06:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 21:32:27 +02:00
2020-08-09 21:32:27 +02:00
2018-01-13 12:56:59 -08:00
2016-02-19 10:04:21 +01:00
2020-08-09 13:14:22 +02:00
2015-11-19 14:35:16 +01:00
2020-08-09 13:14:22 +02:00
2020-03-12 19:47:50 +01:00
2020-08-09 13:14:22 +02:00
2015-11-19 14:35:16 +01:00
2020-08-09 13:14:22 +02:00
2015-11-19 14:35:16 +01:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-28 16:01:35 -06:00
2020-08-09 13:14:22 +02:00
2019-01-19 18:19:11 +01:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-09-03 14:34:03 +02:00
2019-01-19 18:19:09 +01:00
2019-01-19 18:19:09 +01:00
2017-10-09 21:42:30 +02:00
2020-08-09 17:59:04 +02:00
2018-04-14 14:23:21 +02:00
2017-03-28 08:15:35 +02:00
2020-03-12 17:01:01 +01:00
2020-03-12 17:01:01 +01:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 11:54:04 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-02-07 22:46:21 +01:00
2016-04-01 15:33:11 +02:00
2015-11-19 14:35:16 +01:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-28 16:01:35 -06:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-26 09:46:04 -06:00
2020-09-20 21:49:08 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2020-08-09 13:14:22 +02:00
2015-12-07 14:40:36 +01:00
2018-01-13 13:11:33 -08:00
2016-06-18 14:27:40 +02:00