]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DEV: udp: add a tiny UDP proxy for testing
authorWilly Tarreau <w@1wt.eu>
Thu, 3 Mar 2022 15:53:46 +0000 (16:53 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 3 Mar 2022 16:49:13 +0000 (17:49 +0100)
commitc927137785a4667be26986a5f7a080037db7441a
tree47b55a51657298542fede4720031e5c619fc54d3
parente81248c0c8c543ab5065b41310e7c9685f61cc87
DEV: udp: add a tiny UDP proxy for testing

QUIC really needs more traffic perturbation for the tests. Let's have
a tiny UDP proxy for this, mostly derived from the 'connect' test suite.
For now it only supports a single "connection" at once, but the code is
here to support more. A new "connection" will simply replace the previous
one. It doesn't yet cause traffic perturbations, this is still to be added.
Some of the setsockopt() are possibly unneeded. The error handling is
almost inexistent, and polling for sends is not implemented at all (will
cause losses). No stats are collected.
dev/udp/udp-perturb.c [new file with mode: 0644]