cURL / Mailing Lists / curl-library / Single Mail


Re: Problem using Curl multi interface and persistent connections

From: Daniel Stenberg <>
Date: Wed, 2 Jun 2010 19:56:57 +0200 (CEST)

On Wed, 2 Jun 2010, Kartik Mahajan wrote:

> // And finally call this
> curl_multi_cleanup(curl_multi_handle);

When you use the multi interface, all the connections that are kept alive for
subsequent re-use are stored in the multi handle. The moment you call
curl_multi_cleanup(), you also close all remaining connections and they can
then no longer be re-used.

With the multi interface, you should make an effort to re-use the multi handle
instead of init/cleanup new ones all the time.

List admin:
Received on 2010-06-02