Note that SO_REUSEADDR has confusingly similar-but-different semantics on Windows — it allows "stealing" a port from a running process (in fact I think the MSDN docs say it's "non-deterministic" which process will receive a new TCP connection in that situation).
Using it is probably the lesser of two evils, though.
Note that SO_REUSEADDR has confusingly similar- but-different semantics on Windows — it allows "stealing" a port from a running process (in fact I think the MSDN docs say it's "non-deterministic" which process will receive a new TCP connection in that situation).
Using it is probably the lesser of two evils, though.