cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: cURL on Windows with _WIN32_WINNT=0x0600 suffers from WSAPoll bug

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 1 Aug 2012 23:18:57 +0200 (CEST)

On Tue, 31 Jul 2012, Jan Koen Annot wrote:

> When building the cURL library on Windows with _WIN32_WINNT=0x0600, cURL
> will use the WSAPoll API function (available in Vista and higher). However,
> cURL will suffer from a bug in WSAPoll. 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 */.

Is there any official documentation or recognition of this flaw somewhere? A
question from 2008 in a forum post is not the most comforting source.

What's your suggested fix?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-08-01