curl-library
RE: C libcurl max multi connections limit
Date: Thu, 2 Dec 2004 09:37:16 +0200
Hi Gokul Soundararajan,
I am doing things simular to yours.
Most probably you are either :
1. Hitting the descriptors limit, which is 1024 on linux:
increase it prior to run by e.g. #ulimit -n 10000;
2. Hitting the default select () limit of 1024 descriptors:
pickup the latest night-build version of libcurl with
the recent patch, which is using pool () system call instead;
You may wish also to decrease (but not too much - up to 10-20 sec) time-wait lifetime of the closed
tcp-sockets, which is somewhere in /proc.
Sincerely,
Robert Iakobashvili
Date: Wed, 01 Dec 2004 12:43:34 -0500
From: Gokul Soundararajan <gokul_at_eecg.toronto.edu>
Subject: C libcurl max multi connections limit
To: curl-library_at_cool.haxx.se
Message-ID: <41AE02C6.8040700_at_eecg.utoronto.ca>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hi,
I have designed a http client emulator using C libcurl. In the code, I
am using the multi-interface. It seems that there is a limit of the
number of concurrent connections when using the multi-interface.
For example, I get CURL error 7 (COULDNT_CONNECT) whenver I use more
than 1024 concurrent connections.
If there is a limit, is there a way to increase it?
Thanks,
- application/ms-tnef attachment: winmail.dat