cURL
Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Archives

Mac OS X connect problems (was Re: [PATCH, RFC] Make hostthre.c work on POSIX)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 8 Nov 2009 23:35:19 +0100 (CET)

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
Received on 2009-11-08

These mail archives are generated by hypermail.

donate! Page updated November 16, 2009.
web site info

File upload with ASP.NET