cURL / Mailing Lists / curl-library / Single Mail


Re: How to close a connection to a server,

From: Dan Fandrich <>
Date: Thu, 21 Oct 2010 11:43:34 -0700

On Thu, Oct 21, 2010 at 11:58:36PM +0530, Shivanand wrote:
> I want to open a new connection each time. I cant use easy_cleanup because I
> want to retain other options set on easy handle. IS there any way to close the
> connection with the server without calling clean up?

Look at the CURLOPT_MAXCONNECTS and CURLOPT_FRESH_CONNECT options. But, you're
usually better off reusing an existing connection, so I'd look at getting
that working properly instead.

>>> Dan
List admin:
Received on 2010-10-21