cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl not sending QUIT to terminate control connection

From: Joe Halpin <j.p.h_at_comcast.net>
Date: Sun, 18 Jan 2004 22:32:51 -0600

Joe Halpin wrote:
> Daniel Stenberg wrote:

> FTP-specific disconnect code should be written in the
> Curl_ftp_disconnect() function (which is called from the
> Curl_disconnect()) function.
>
> My guess is that you called Curl_ftp_quit() after
> Curl_ftp_disconnect() is called, and then the ftp struct is cleaned
> up already!

You're quite right about that. I moved the call to Curl_ftp_quit() into
Curl_ftp_disconnect() and it seems to be working fine now.

Is there a guarantee that Curl_ftp_disconnect() is only called to close
the control connection, and not the data connection? It seems to be the
case from what I've tried, but I'm assuming that the function pointers
get set as I would expect them to be. It's hard to check that out
without doing exhaustive checks, and I don't have Kerberos et al installed.

Joe

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
Received on 2004-01-19