cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Forcing a disconnect

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 23 Jan 2009 00:34:34 +0100 (CET)

On Thu, 22 Jan 2009, Crumrine, John wrote:

> I am connecting to a ftp server using ftp/s and we are having problems
> ending the curl session. Specifically when uploading a file, the curl
> command completes on my end, but the receiving server doesn't recognize
> it as completed and continues waiting until it is manually closed.

I don't get it. When curl has exited, how do you "manually" close it any
further than what curl already did?

> Similarly when downloading a file, we connect, retrieve the file and
> then get a message "* Closing connection #0". However the remote server
> still shows an active connection.

Using -v should show you exactly what curl does to close down things. To my
knowledge it sends the correct FTP commands.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-01-23