cURL / Mailing Lists / curl-users / Single Mail


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

From: Daniel Stenberg <>
Date: Fri, 25 Jul 2014 23:59:00 +0200 (CEST)

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

You're experiencing some kind of weird case. Possibly a bug somewhere.

List admin:
Received on 2014-07-25