DEV: tcploop: add minimal support for unix sockets
authorWilly Tarreau <w@1wt.eu>
Wed, 11 Jan 2023 09:54:59 +0000 (10:54 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 11 Jan 2023 10:27:20 +0000 (11:27 +0100)
commitb714e11aaa0416df8122402571ae14173759264a
tree2c639a200936122639b4f177da08fb195070ac76
parent8c99081d38eb294f4ec21bc6ed85d8cd85b4cd70
DEV: tcploop: add minimal support for unix sockets

Since the tool permits to pass an FD bound for listening, it's convenient
to test haproxy's "bind fd@". Let's add support for UNIX sockets the same
way. -U needs to be passed to change the default address family, and the
address must contain a "/".

E.g.
  $ dev/tcploop/tcploop -U /tmp/ux L Xi ./haproxy -f fd1.cfg
dev/tcploop/tcploop.c