On Mon, Apr 05, 2004 at 12:17:15AM +0200, Marcel Klein wrote:
> - ---- data packet: pos=1015808, size=135652360
> - ---> sending a packet, length=25, type=5(READ), id=126
>
> `file' at 1048576 (20%) [Receiving data]
> - ----
>
> And that was it. Nothing will happen now until I cloese lftp and start it again :(
This bug was caused by missing CheckTimeout() call. Please check if this patch
really fixes the bug.
--
Alexander.
Index: SFtp.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/SFtp.cc,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -p -r1.21 -r1.22
--- SFtp.cc 5 Apr 2004 07:17:07 -0000 1.21
+++ SFtp.cc 5 Apr 2004 07:21:35 -0000 1.22
@@ -18,7 +18,7 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: SFtp.cc,v 1.21 2004/04/05 07:17:07 lav Exp $ */
+/* $Id: SFtp.cc,v 1.22 2004/04/05 07:21:35 lav Exp $ */
#include <config.h>
#include "SFtp.h"
@@ -119,6 +119,9 @@ int SFtp::Do()
BumpEventTime(pty_send_buf->EventTime());
if(pty_recv_buf)
BumpEventTime(pty_recv_buf->EventTime());
+
+ if(CheckTimeout())
+ return MOVED;
if((state==FILE_RECV || state==FILE_SEND)
&& rate_limit==0)