Let me try to explain better. I have 300 threads running, all using
curl_easy to download content.
I put the printfs around calls to ares_gethostbyname, because it seemed
like it was synchronizing on me-
With 300 threads downloading, I would expect to see a lot of
interleaving, ie
Host google.com started [timestamp]
Host www.foobar <http://www.foobar/> .com ended [timestamp]
Host www.argle.com <http://www.argle.com/> started [timestamp]
Host google.com ended [timestamp]
Instead, I'm seeing only
Host google.com started [timestamp]
Host google.com ended [timestamp]
Host www.foobar.com started [timestamp]
Host www.foobar.com ended [timestamp]
Host www.argle.com started [timestamp]
Host www.argle.com ended [timestamp]
With 300 threads downloading at once, this seems implausible; Jason Pump
suggested that the call was non-blocking,
but the times can be 15 seconds. Does this mean that I have something
seriously mis-configured?
Thanks for any help,
Michael Mastroianni
On Fri, 21 Oct 2005, Michael Mastroianni wrote:
> I should probably be posting to the ares list, but I haven't seen any
> mail from it, and can't view the archives, so I'll try here.
There is a c-ares mail archive, but the link was arong on the subscribe
page (I just fixed it): http://daniel.haxx.se/projects/c-ares/mail.cgi
> The weird thing is that they seem to be synchronized, ie, if the first
> one is snooglebar.aardvark.com, so is the next one, _always_. I would
> expect to see some interleaving in stderr, ie, snooglebar.aardvark.com
> starts and whatever.something.com ends.
Sorry, but I don't understand what you tested here and what the problem
is with what you got.
And I do think this belongs on the c-ares list...
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on Fri Oct 21 20:55:38 2005