diff -uNr lftp-3.7.11.orig/src/ftpclass.cc lftp-3.7.11/src/ftpclass.cc
--- lftp-3.7.11.orig/src/ftpclass.cc	2009-03-17 03:59:59.000000000 -0700
+++ lftp-3.7.11/src/ftpclass.cc	2010-02-18 09:41:40.000000000 -0800
@@ -4180,6 +4180,7 @@
    case Expect::CCC:
       if(is2XX(act))
       {
+	 conn->control_send->PutEOF();
 	 state=WAITING_CCC_SHUTDOWN;
 	 conn->waiting_ssl_timer.Reset();
       }
