On 1 December 2011 13:02, Matthew Ford <[email protected]> wrote:
> Hi,
>
> I'm trying to build on the 10-at-a-time.c example code 
> (http://curl.haxx.se/libcurl/c/10-at-a-time.html) to write a small utility 
> that reads in a bunch of hostnames from a file and tries to connect to them 
> using the multi interface.
>
> I'm finding that this works fine up to a little over 1000 hostnames, and 
> thereafter I get output, but there is no actual connection taking place 
> behind the scenes.

Check your resource limits for the number of open file descriptors.  e.g.:

$ ulimit -n
1024

> Is there an obvious reason for this limit either in the example code, or some 
> aspect of the way libcurl is built?

I suspect this is your OS (resource limits) rather than libcurl or the
example code.

-- 
Michael Wood <[email protected]>
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to