curl-users
Re: Can you force a connection to close via the command line?
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 25 Jul 2014 23:59:00 +0200 (CEST)
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
dies.
You're experiencing some kind of weird case. Possibly a bug somewhere.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2014-07-25