Re: Bugreport: SSL connection terminated without SSL shutdown / corrupted data
"Alexander V. Lukyanov" <[email protected]> Tue, 30 Sep 2008 11:04:10 +0400
| Newsgroups | gmane.network.lftp.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sun, Sep 28, 2008 at 05:18:32PM +0200, Andreas Prieß wrote: > lftp seems to upload two files in parallel (is this going over one data > channel?), man lines like "copy: put rolled back to 13041664, seeking > get accordingly" appear. Then: Here is the patch to fix this problem. Index: MirrorJob.cc =================================================================== RCS file: /home/lav/cvsroot/lftp/src/MirrorJob.cc,v retrieving revision 1.164 diff -u -p -r1.164 MirrorJob.cc --- MirrorJob.cc 23 Jul 2008 08:46:10 -0000 1.164 +++ MirrorJob.cc 30 Sep 2008 06:46:30 -0000 @@ -307,7 +307,7 @@ void MirrorJob::HandleFile(FileInfo *fi if(target_is_local) dst_peer=new FileCopyPeerFDStream(new FileStream(target_name,O_WRONLY|O_CREAT|(cont_this?0:O_TRUNC)),FileCopyPeer::PUT); else - dst_peer=new FileCopyPeerFA(target_session,file->name,FA::STORE); + dst_peer=new FileCopyPeerFA(target_session->Clone(),file->name,FA::STORE); FileCopy *c=FileCopy::New(src_peer,dst_peer,cont_this); if(remove_source_files) -- Alexander.