Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WSAPoll: disabled on all windows builds
Due to WSAPoll bugs, libcurl does not work as intended. When the cURL library is used to setup a connection to an incorrect port, normally the result is CURLE_COULDNT_CONNECT, /* 7 */, but due to the bug in WSAPoll, the result now is CURLE_OPERATION_TIMEDOUT, /* 28 - the timeout time was reached */. On August 1, Jan Koen Annot opened a case for this to Microsoft Premier Online (https://premier.microsoft.com/). The support engineer handling the case wrote that the case description is quite clear. He will try to reproduce the issue and then proceed with troubleshooting it. Reported by: Jan Koen Annot Bug: http://curl.haxx.se/mail/lib-2012-07/0310.html
- Loading branch information
8bad5f2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By the way, has the bug of WSAPoll() been fixed?
8bad5f2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The buggy WSAPoll() is provided by Microsoft and they won't fix it. I have no intention of writing a work-around (partly because I don't use windows and can't test such a change myself), although it should probably be possible for someone to do it.
8bad5f2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the recent Microsoft document, it is fixed:
https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-wsapoll
8bad5f2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing this out. "Someone" should do some extensive tests to see if we can switch to WSAPoll() given the right circumstances.