lavv17 / lftp

sophisticated command line file transfer program (ftp, http, sftp, fish, torrent)
http://lftp.yar.ru
GNU General Public License v3.0
1.11k stars 162 forks source link

lftp hangs if add strings to source file during transfering #647

Open sherlock-zhouyh opened 3 years ago

sherlock-zhouyh commented 3 years ago

Use lftp to transfer a big txt file(about 1Gb) in linux: lftp -u mysftp,123456 sftp:xxx.xxx.xxx.xxx:22 -e "debug 10 -cpt -o lftp.log;set net:reconnect-interval-base 3;set net:max-retries 3;set net:timeout 30s;put hello -o share/hello;bye"

Then add bunch of characters to local src file hello during trasfering: echo "testtesttesttesttest...testtestesttesttesttest" >> hello (use scripts to add about 10Mb)

The transfer process will stuck in dead loop(ps -ef|grep lftp).