cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Fetching More than 500 files from Server

From: Tim Bannister <isoma_at_jellybaby.net>
Date: Wed, 13 Jun 2012 09:20:23 +0100

On 13 Jun 2012, at 05:38, Swamy Mudhbasalar wrote:

> 1. In all HTTP request sent and recieved observed Connection: close ?
> 2. How to make Connection : Alive and use the same connection to fetch all
> the files? What need to added
> specificalling in the code to do this ?
> 3.Why connections are not getting closed and they remain idle for 30 mins?

If the response contains Connection: close, it would be a good idea to cleanup that curl easy handle. The server is dropping a strong hint not to use HTTP keepalive.

If you want something more robust / faster, you can use 2 parallel connections (which will need extra programming).

-- 
Tim Bannister – isoma_at_jellybaby.net

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

  • application/pkcs7-signature attachment: smime.p7s
Received on 2012-06-13