Skip to content

Fix repeated ConcurrentNetworkEchoTest and SimpleNetworkTest

Both test fail when repeated because the listener can not bind to the tcp tuple again. This is fixed by using SO_REUSEPORT instead of SO_REUSEADDR.

TIL: SO_REUSEADDR is about address wildcards and SO_REUSEPORT allows rapid binding to the same tcp tuple.

Add a generic way to specify socket options when creating a listen socket with tcp_listener.

Edited by Florian Fischer

Merge request reports