cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: curl-multi: Pausing download with connection open

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Sun, 18 Jul 2004 09:36:37 +0200 (CEST)

On Sat, 17 Jul 2004, Richard Atterer wrote:

>> I'm open for suggestions and patches on how such a pausing would be
>> controlled.
>
> Hmm, libcurl could maintain a "paused" flag for each easy handle, and when
> that flag is set, the handle's sockets could no longer be returned in the
> fd_set result of curl_multi_fdset().

Yes that would work, and then connections marked as paused wouldn't be checked
for receiving or sending data.

> Also, it's possible that the application will run out of connections sooner
> if there's some kind of limit... What does CURLOPT_MAXCONNECTS apply to,
> overall open connections, connections to a single host, or overall open, but
> unused connections?

Maximum number of open connections in an easy handle's connection "pool". They
are used to allow connection re-use when subsequent requests are made.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-07-18

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET