cURL / Mailing Lists / curl-library / Single Mail

curl-library

--ftp-ssl-ccc not always working

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 24 Jan 2007 11:31:46 -0800

I tried the new --ftp-ssl-ccc option on the public Gene6 FTP server, and it
doesn't work right. The command:

./curl -v --ftp-ssl-ccc --ftp-ssl -k ftp://ftp.g6ftpserver.com/

gives in a log looking like this:

* About to connect() to ftp.g6ftpserver.com port 21 (#0)
* Trying 87.98.200.117... connected
* Connected to ftp.g6ftpserver.com (87.98.200.117) port 21 (#0)
< 220 Gene6 FTP Server v3.8.0 (Build 34) ready...
> AUTH SSL
< 234 AUTH command ok; starting SSL connection.
[...]
< 230 User anonymous logged in.
> PBSZ 0
< 200 PBSZ=0
> PROT P
< 200 PROT command successful.
> CCC
< 200 Command okay.
* SSL_get_shutdown() returned SSL_RECEIVED_SHUTDOWN
> PWD
< WD
    dRÿgäPÁs¶&'

and then curl hangs. Sometimes, the garbage after the PWD command doesn't
appear, but it still hangs. It looks to me like some kind of race condition
while shutting down the SSL connection.

$ ./curl --version
curl 7.16.1-CVS (i686-pc-linux-gnu) libcurl/7.16.1-CVS OpenSSL/0.9.6b zlib/1.1.4 libidn/0.4.6
Protocols: tftp ftp telnet dict ldap http file https ftps
Features: IDN IPv6 Largefile NTLM SSL libz

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2007-01-24