[EchoServer] set SO_REUSEPORT on the listen socket
Compare changes
+ 10
− 6
@@ -21,12 +21,13 @@
@@ -48,7 +49,7 @@ auto main(int argc, char* argv[]) -> int {
@@ -83,7 +84,10 @@ auto main(int argc, char* argv[]) -> int {
This is needed by emper-io-eval because apparently our startup/termination times are not enough for the OS to allow the rebinding of the same tcp tuple.
Also make all global variables static because they don't have to be exported.