http://bugs.winehq.org/show_bug.cgi?id=4619
------- Additional Comments From damjan.jov@gmail.com 2006-16-11 00:56 ------- Yes, there is 3 scenarios where polling is useful: to know connect() is finished, to know a connection arrived and you can accept(), and to know there is data arrived in the input buffer for recv() or space become available in the output buffer for send().
wine only tests the first case, and my patch only fixes the third. Haven't really tested the second case, but from the number of tests that fail, a lot of work is needed to make select() work properly.