http://bugs.winehq.org/show_bug.cgi?id=26031
--- Comment #48 from Artem S. Tashkinov t.artem@mailcity.com 2013-07-29 23:27:22 CDT --- (In reply to comment #47)
(In reply to comment #46)
Kernel developers insist SO_REUSEADDR works:
https://lkml.org/lkml/2013/7/29/530
Actually I've just strace'd wine, and it seems like SO_REUSEADDR appears very late in the log.
I don't have any doubt that SO_REUSEADDR works =) Maybe the only solution is to force SO_REUSEADDR in every socket created inside wine. I'm working on replicating the exact steps from uTorrent to have a better testcase.
Gotta agree with:
Maybe the only solution is to force SO_REUSEADDR in every socket created inside wine.
I see zero problems using this flag for all bind()'s - it cannot hurt.