On Thu, Nov 01, 2007 at 10:23:12AM +0100, Michael Reidt wrote:
> I tested the previously reported case (concerning 3.5.13) of a connection 
> loss during directory upload (mirror) with 3.5.15 and still have the same 
> trouble:  the timeout detection doesn't seem to work in certain situations.  
> Should I test this scenario with 3.6 also, or will the newest release act the 
> same way?

Here is a patch to fix the problem.

--
   Alexander.
Index: ftpclass.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/ftpclass.cc,v
retrieving revision 1.432
diff -u -p -r1.432 ftpclass.cc
--- ftpclass.cc 19 Oct 2007 12:39:59 -0000      1.432
+++ ftpclass.cc 8 Nov 2007 07:43:06 -0000
@@ -3076,10 +3076,6 @@ int  Ftp::FlushSendQueue(bool all)
    if(conn->send_cmd_buffer.Size()==0)
       return m;
 
-   // prevent timeout after some idle time
-   if(conn->control_send->Size()==0)
-      timeout_timer.Reset();
-
    while(conn->sync_wait<=0 || all || !(flags&SYNC_MODE))
    {
       int res=conn->FlushSendQueueOneCmd();

Reply via email to