cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Closing connection #0

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 11 Apr 2008 15:57:57 +0200 (CEST)

On Fri, 11 Apr 2008, Vijay wrote:

> Even though its default no need to set option to reuse a connection. And
> also am not doing cleanup but my connection is getting closed not left
> intact.
>
> Then even i setted curl_easy_setopt(curl, CURLOPT_FORBID_REUSE, 0) But still
> my connections getting closed.
>
> What may be the reason?

libcurl makes an effort to keep connections alive but if the server says the
connection is getting closed (or similar) then libcurl of course closes it. So
the reason is most often found in the response-headers.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-04-11