cURL / Mailing Lists / curl-users / Single Mail


Re: Can you force a connection to close via the command line?

From: Simon Alexander <>
Date: Mon, 28 Jul 2014 13:40:32 -0600

Thanks for response.

In case it helps, the production system it is failing/hanging on is running
SunOS 5.10 Solaris with curl version curl 7.19.7.

I've tried the same app on a local development system running Fedora with
Linux 3.11.10-301.fc20.x86_64 GNU/Linux, and curl version 7.32.0 and it
works fine with the curl command correctly exiting.

We've got a work around for the production machine, and are looking to
update the OS / curl version in the near future. So if it was a bug then it
looks like it has been resolved with later versions of curl.

On Fri, Jul 25, 2014 at 3:59 PM, Daniel Stenberg <> wrote:

> On Fri, 25 Jul 2014, Simon Alexander wrote:
> Is there anyway to force the closure of a connection using the curl
>> command line?
> Press ctrl-c! =)
> We have a situation where after performing a curl sftp upload of a file,
>> we get the message "Connection #0 to host left intact" and then the command
>> hangs.
> That's an interesting case. But do keep in mind that when the curl command
> is about to exit, it will close all connections unconditionally - there's
> no need for you to do anything extra for that! It can't keep anything alive
> when it dies.
> You're experiencing some kind of weird case. Possibly a bug somewhere.
> --
> /
> -------------------------------------------------------------------
> List admin:
> FAQ:
> Etiquette:

List admin:
Received on 2014-07-28