On Fri, 14 Feb 2003 13:13:30 +0300 "Alexander V. Lukyanov" <[EMAIL PROTECTED]> wrote:

> On Thu, Feb 13, 2003 at 09:48:52PM +0100, [EMAIL PROTECTED] wrote:
> > i figured out the the problem depends on the setting
> > 
> > set ftp:fxp-passive-source yes
> > 
> > when i'm setting this to "no" there is no problem and everything is
> working
> > properly. But if i need to use passive-source then lftp stops with the
> > message "Waiting for other copy peer...". This problem appears only if
> the
> > file needs to be resumed.
> 
> Try attached patch.
> 
> Index: ftpclass.cc
> ===================================================================
> RCS file: /home/lav/cvsroot/lftp/src/ftpclass.cc,v
> retrieving revision 1.255
> diff -u -p -r1.255 ftpclass.cc
> --- ftpclass.cc        11 Feb 2003 14:08:52 -0000        1.255
> +++ ftpclass.cc        14 Feb 2003 09:40:21 -0000
> @@ -2945,6 +2945,8 @@ Ftp::expected_response *Ftp::FindLastCWD
>  
>  bool  Ftp::IOReady()
>  {
> +   if(copy_mode!=COPY_NONE && !copy_passive && !copy_addr_valid)
> +      return true;   // simulate to be ready as other fxp peer has to go
>     return (state==DATA_OPEN_STATE || state==WAITING_STATE)
>        && real_pos!=-1 && IsOpen();
>  }
>

it's working now...

cu Nidhoggr 


Reply via email to