On Wed, Feb 09, 2005 at 09:07:50AM -0600, Steve Buehler wrote:
> 09:00:17 Cmd: PASV
> 09:00:18 227: Entering Passive Mode (xxx,xxx,xxx,xxx,16,146).
> 09:00:18 Cmd: LIST
> 09:00:18 125: Data connection already open; transfer starting.
The only difference I see is the lack of -a option. Does clearing
ftp:list-options in lftp help?
Maybe lftp should wait until connection is established before sending LIST,
but so far it did not caused any problems. Please try this patch.
--
Alexander.
Index: ftpclass.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/ftpclass.cc,v
retrieving revision 1.347
diff -u -p -r1.347 ftpclass.cc
--- ftpclass.cc 21 Jan 2005 14:59:34 -0000 1.347
+++ ftpclass.cc 10 Feb 2005 08:43:28 -0000
@@ -2034,7 +2034,8 @@ int Ftp::Do()
case(DATASOCKET_CONNECTING_STATE):
datasocket_connecting_state:
- m|=FlushSendQueue();
+ if(pasv_state!=PASV_DATASOCKET_CONNECTING)
+ m|=FlushSendQueue();
m|=ReceiveResp();
if(state!=DATASOCKET_CONNECTING_STATE || Error())
@@ -2103,6 +2104,7 @@ int Ftp::Do()
}
if(!(res&POLLOUT))
goto usual_return;
+ DebugPrint("---- ",_("Data connection established"),9);
if(!conn->proxy_is_http)
goto pre_data_open;