curl / Mailing Lists / curl-library / Single Mail


Re: Connection closing problems,

From: Daniel Stenberg <>
Date: Thu, 2 Mar 2017 22:19:13 +0100 (CET)

On Wed, 1 Mar 2017, Nithyaselvan R wrote:

> I could never see a message that connection is closed successfully even
> after the program exits.

That's correct, it doesn't normally tell when it closes connections.

> Am i missing something, is there something i need to ensure the connection
> is closed ?

Nope. libcurl will close them properly when you use it as documented and if
they happen to be still alive when you close the handle(s), the connections
will be closed then at the latest.

Received on 2017-03-02