http://bugs.winehq.org/show_bug.cgi?id=9425
--- Comment #11 from Ruediger Meier sweet_f_a@gmx.de 2012-02-05 07:38:48 CST --- (In reply to comment #10)
(I know that in real life I should wait on exceptfds too in the example above. Fortunately this works a expected.)
My last statement here was not true.
It's a race condition. Sometimes exceptfds is set, sometimes not. Even worse I can't never get the right error 10061 ("connection refused") via getsockopt() even in case exceptfds was set.
This makes this bug IMO a major bug. I wonder if any application which deals with non blocking sockets is working as expected under wine.