http://bugs.winehq.org/show_bug.cgi?id=26031
--- Comment #60 from Artem S. Tashkinov t.artem@mailcity.com 2013-08-27 03:57:47 CDT --- (In reply to comment #59)
(In reply to comment #58)
(In reply to comment #57)
Enabling SO_REUSEADDR by default means you'd allow another socket to bind even when Windows doesn't.
Can you please find a piece of documentation which proves your words? Because I don't have this information and I believe you are not correct.
http://msdn.microsoft.com/en-us/library/windows/desktop/ms740621%28v=vs.85%2...
The second bind call is supposed to fail with an INUSE error when no options are set on either socket.
We can argue forever about the feasibility and validity of using SO_REUSEADDR by default, the fact is here's a Windows application which works under Windows and breaks under Linux.
Besides last time I checked, Wine is meant to emulate Windows behaviour as much as possible - and since the Linux kernel allows sockets reuse, Wine must allow it too for Windows applications.