curl-library
Re: Threaded resolver provides bad file descriptor on Windows
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 8 Jul 2010 21:44:53 +0200 (CEST)
Date: Thu, 8 Jul 2010 21:44:53 +0200 (CEST)
On Thu, 8 Jul 2010, Brian Makin wrote:
> In these slower cases, the suggested timeout starts as 1 ms, but then
> changes to -1 ms. According to the manpage, the -1 indicates that curl has
> no good suggestable timeout. The modified example code falls back to 1000 ms
> in this case.
What if you make the fallback to be 1 ms instead? In the situation where
there's no file descriptor to wait for, it will of course wait for the full
time period you set...
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2010-07-08