From 1d56a7919af2bbf9245e9c55cd9458d88887dae6 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 30 Jun 2019 14:48:50 +0200 Subject: [PATCH] poll: Add comment. * lib/poll.c: Add comment about WSAPoll. --- ChangeLog | 5 +++++ lib/poll.c | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6fe1531a04..cd60fe7fe3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2019-06-30 Bruno Haible + + poll: Add comment. + * lib/poll.c: Add comment about WSAPoll. + 2019-06-30 Bruno Haible poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600. diff --git a/lib/poll.c b/lib/poll.c index f6de24c793..5d9150c13a 100644 --- a/lib/poll.c +++ b/lib/poll.c @@ -76,6 +76,13 @@ #ifdef WINDOWS_NATIVE +/* Do *not* use the function 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" + . */ + /* Here we need the recv() function from Windows, that takes a SOCKET as first argument, not any possible gnulib override. */ # undef recv -- 2.39.5