]> Savannah Git Hosting - gnulib.git/commitdiff
poll: Add comment.
authorBruno Haible <bruno@clisp.org>
Sun, 30 Jun 2019 12:48:50 +0000 (14:48 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 30 Jun 2019 12:48:50 +0000 (14:48 +0200)
* lib/poll.c: Add comment about WSAPoll.

ChangeLog
lib/poll.c

index 6fe1531a04b8c9f14cbfc9550d23b0c61802a541..cd60fe7fe33a037a0d1cd657e2eb85ea53a6b375 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-06-30  Bruno Haible  <bruno@clisp.org>
+
+       poll: Add comment.
+       * lib/poll.c: Add comment about WSAPoll.
+
 2019-06-30  Bruno Haible  <bruno@clisp.org>
 
        poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
index f6de24c7938bc85b7d6c8f65aebd5419f461280c..5d9150c13af22da83d6b83978b92df82cab9083c 100644 (file)
 
 #ifdef WINDOWS_NATIVE
 
+/* Do *not* use the function WSAPoll
+   <https://docs.microsoft.com/en-us/windows/desktop/api/winsock2/nf-winsock2-wsapoll>
+   because there is a bug named “Windows 8 Bugs 309411 - WSAPoll does not
+   report failed connections” that Microsoft won't fix.
+   See Daniel Stenberg: "WASPoll is broken"
+   <https://daniel.haxx.se/blog/2012/10/10/wsapoll-is-broken/>.  */
+
 /* Here we need the recv() function from Windows, that takes a SOCKET as
    first argument, not any possible gnulib override.  */
 # undef recv