https://bugs.winehq.org/show_bug.cgi?id=38294
Bug ID: 38294 Summary: select() does not report exception on socket after non-blocking connect() fails Product: Wine Version: 1.7.22 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winsock Assignee: wine-bugs@winehq.org Reporter: dwmw2@infradead.org Distribution: ---
See http://cr.yp.to/docs/connect.html for a discussion of non-blocking socket connect().
It's not quite right for Windows; under Windows when the connect fails, select() will mark it in the exceptfds and *not* the writefds.
Under wine, however, it doesn't marked in *either* set of fds and select() just hangs for ever. Seen with the OpenConnect VPN client, when connecting to any port that doesn't accept a connection.
https://bugs.winehq.org/show_bug.cgi?id=38294
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Blocks| |9425 Ever confirmed|0 |1
--- Comment #1 from Bruno Jesus 00cpxxx@gmail.com --- We are aware of that, we have tests confirming the windows behavior but it will take a bit longer to fix. Thanks for the report.
https://bugs.winehq.org/show_bug.cgi?id=38294
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|wine-bugs@winehq.org |00cpxxx@gmail.com
--- Comment #2 from Bruno Jesus 00cpxxx@gmail.com --- Taking to myself since I'm working on similar stuff and can take a look.
https://bugs.winehq.org/show_bug.cgi?id=38294
--- Comment #3 from Bruno Jesus 00cpxxx@gmail.com --- Should be fixed by http://source.winehq.org/git/wine.git/commitdiff/b2556a2c34f36c0c82f028dbf24...
Please try again in git, I would try but I could not find a Windows build of the OpenConnect VPN client.
https://bugs.winehq.org/show_bug.cgi?id=38294
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |b2556a2c34f36c0c82f028dbf24 | |acb1ed77cce29 Status|ASSIGNED |RESOLVED Resolution|--- |FIXED
--- Comment #4 from Bruno Jesus 00cpxxx@gmail.com --- Assuming fixed by b2556a2c34f36c0c82f028dbf24acb1ed77cce29.
https://bugs.winehq.org/show_bug.cgi?id=38294
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.44.