On Sat, Aug 18, 2007 at 09:31:36PM -0500, Thomas L. Shinnick wrote:
> But using   "lftp  sftp://that_host";   only works for the 16KB size, 
> and fails on 64KB or bigger.

This patch should fix the problem.

-- 
   Alexander.
Index: SFtp.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/SFtp.cc,v
retrieving revision 1.59.2.1
diff -u -p -r1.59.2.1 SFtp.cc
--- SFtp.cc     15 Jun 2007 06:28:51 -0000      1.59.2.1
+++ SFtp.cc     20 Aug 2007 08:34:28 -0000
@@ -278,6 +278,8 @@ int SFtp::Do()
       }
       if(RespQueueSize()>max_packets_in_flight)
         return m;
+      if(s>size_write)
+        s=size_write;
       SendRequest(new 
Request_WRITE(handle,handle_len,request_pos,b,s),Expect::WRITE_STATUS);
       file_buf->Skip(s);
       request_pos+=s;

Reply via email to