On Sun, 8 Nov 2009, Rob wrote:
There is nothing that says your experienced problems have anything to do with
the work Constantine is doing on the threaded resolvers. I've changed subject
now to better reflect that this is a separate topic.
I launch a lot of connections at the same time, each easy handle is created
and destroyed in its own pthread and it works flawlessly until I increase
the number of connections to about 20 or above and then curl_easy_perform
starts returning error 7 on all new handles.
And have you checked with wireshark or similar what the remote server(s) say
to the TCP connect attempts? Are these using the same server or are the "20 or
so" using different servers? Is the limit fixed, as in does 19 work but 20
fails? If so, what is the limit?
I have been configuring libcurl with:
./configure --enable-ares
Having read your emails should I also be setting --enable-thread and
--enable-nonblocking?
Not at all, you're barking up the wrong tree.
Those options won't make any differences for you (they're also default
actions...). In fact, your problem is not DNS or name resolve related at all
since you get error 7. 7 is CURLE_COULDNT_CONNECT which is a failed connect
attempt which implies a successful name resolve before that.
Are you using 7.19.7? Have this problem always happned or did an earlier
libcurl version work?
--
/ daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html