Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 8bad5f2a6169e2e816aed7a5147becba489d59e1 1 parent f0d611d
Daniel Stenberg authored August 07, 2012

Showing 1 changed file with 1 addition and 19 deletions. Show diff stats Hide diff stats

  1. 20  lib/select.h
20  lib/select.h
@@ -7,7 +7,7 @@
7 7
  *                            | (__| |_| |  _ <| |___
8 8
  *                             \___|\___/|_| \_\_____|
9 9
  *
10  
- * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
  10
+ * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
11 11
  *
12 12
  * This software is licensed as described in the file COPYING, which
13 13
  * you should have received as part of this distribution. The terms
@@ -31,24 +31,6 @@
31 31
 #endif
32 32
 
33 33
 /*
34  
- * poll() function on Windows Vista and later is called WSAPoll()
35  
- */
36  
-
37  
-#if defined(USE_WINSOCK) && (USE_WINSOCK > 1) && \
38  
-    defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0600)
39  
-#  undef  HAVE_POLL
40  
-#  define HAVE_POLL 1
41  
-#  undef  HAVE_POLL_FINE
42  
-#  define HAVE_POLL_FINE 1
43  
-#  define poll(x,y,z) WSAPoll((x),(y),(z))
44  
-#  if defined(_MSC_VER) && defined(POLLRDNORM)
45  
-#    undef  POLLPRI
46  
-#    define POLLPRI POLLRDBAND
47  
-#    define HAVE_STRUCT_POLLFD 1
48  
-#  endif
49  
-#endif
50  
-
51  
-/*
52 34
  * Definition of pollfd struct and constants for platforms lacking them.
53 35
  */
54 36
 

2 notes on commit 8bad5f2

Peng Liu
pliu6 commented on 8bad5f2 July 15, 2013

By the way, has the bug of WSAPoll() been fixed?

Daniel Stenberg
Owner

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.

Please sign in to comment.
Something went wrong with that request. Please try again.