Date: Sat, 28 Jun 2008 15:27:14 -0400
I am using the curl library version 7.17.0 and the multi interface.
I am confused regarding the use of the option "CURLOPT_MAXCONNECTS" and the
behaviour when this limit is exceeded.
What would happen if the application asks for simultaneous downloads which
are more than the value set in CURLOPT_MAXCONNECTS ?
The documentation states that
"When reaching the maximum limit, curl closes the oldest one in the cache to
prevent the number of open connections to increase."
1. Considering a scenario in which the the value for CURLOPT_MAXCONNECTS is
set to 5 and the application sends 6 downloads requests.
Would the first download request be dropped or the 6th request be buffered.
2. Also, if the CURLOPT_MAXCONNECTS is set to 1, would the download requests
be serialised i.e. a second download request would only be performed by curl
if the first request has completed (with either success or a failure).
Received on 2008-06-28