chiark / gitweb /
proxy/tripe-mitm.c, server/tests.at: Optionally use kernel-assigned ports.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 29 Sep 2019 13:17:54 +0000 (14:17 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 29 Sep 2019 13:17:54 +0000 (14:17 +0100)
commita23e71839a8b7caff67b837245236882cc4a23b4
tree5905b2ffcc60cea7aff6b9fb6ee8c506bd0be1a5
parent9a8968eb1173b9cb0d03b607d79652a653192584
proxy/tripe-mitm.c, server/tests.at: Optionally use kernel-assigned ports.

Add an option for the `peer' ports in `tripe-mitm' to be allocated by
the kernel, and for the port numbers to be written to named files.  Use
this in the tests so as to avoid conflicts between concurrent instances
of the tests.  It's not perfect: some of the tests require that a new
`tripe-mitm' take over a port from an old one, and there's a chance that
some other process might have grabbed it in between -- but it's much
better than it was before.

I should also consider using `noip' for this testing.
proxy/tripe-mitm.8.in
proxy/tripe-mitm.c
server/tests.at