When trying to bind AF_INET{,6} sockets, turn on SO_REUSEADDR if the bind fails with EADDRINUSE. I'm not sure this is a good thing to do in general, but it is suitable for the use case at hand. May need backing out or making optional.