This way, neither the GossipRouter nor the clients will block on a socket read forever (SO_TIMEOUT). Same for socket close (SO_LINGER). Make the timeouts configurable (0 means block forever).