cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Multi interface in Windows fails

From: Christopher R. Palmer <crpalmer_at_vivisimo.com>
Date: Fri, 02 Apr 2004 10:41:14 -0500

Daniel Stenberg wrote:

> On Thu, 1 Apr 2004, Andrés García wrote:
>>I have just noticed that the multi interface has stopped working in Windows,
>>at least when compiled with mingw.
>>
>>For example, 'multi-single.c' that works with version 7.11.0, in 7.11.1
>>hangs as
>>
>> rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
>>
>>always returns '-1' which provokes an infinite loop.
>
> Gosh. Can you figure out _why_ select() returns -1? What does GetLastError()
> return?

We have had some problems here which I only vaguely know about. The
problems seems to be that all 3 fdsets are empty which is an error on
windows, but not an error on unix.

This seems to occur while doing DNS. cURL+multi seems to work fine if you
undefine USE_THREADING_GETHOSTBYNAME (which is how we are using it right now).

> If the 7.11.1 multi interface fails with all windows compilers, then I think
> we can be sure it isn't used much! ;-/

Not entirely unused!

Cheers,
Chris.

-- 
Christopher R. Palmer                     palmer_at_vivisimo.com
Chief Technology Officer                  www.vivisimo.com
Vivisimo, Inc.                            412-422-2499 ext. 118
Received on 2004-04-02