Pure-FTPd断点上传相同文件BUG

Linland 发布于 2014/01/13 18:40
阅读 558
收藏 0

【开源中国 APP 全新上线】“动弹” 回归、集成大模型对话、畅读技术报告”

        使用Pure-FTPd,开启了断点续传,然后两个客户端上传同一个文件,第一个客户端传输结束,文件正常,第二个客户端然后取消上传,服务器文件尽然成了第二个客户端取消时候的大小。请问各位,这种问题如何处理?
加载中
0
Linland
Linland

引用来自“blueeye_dada”的答案

是这个问题,我同事提出来的, @blueeye_dada ,有没有遇到过
0
b
blueeye_dada

没有遇到过, 我看见在pure-ftpd.conf 的棚子文件里面有个开关:

NoTruncate         yes

 


 
 
 
 
 
# When a file is uploaded and there is already a previous version of the file
# with the same name, the old file will neither get removed nor truncated.
# Upload will take place in a temporary file and once the upload is complete,
# the switch to the new version will be atomic. For instance, when a large PHP
# script is being uploaded, the web server will still serve the old version and
# immediatly switch to the new one as soon as the full file will have been
# transfered. This option is incompatible with virtual quotas.
这个选项 打开之后 操作就是 原子的;不过你如果启用了用户的配额 那么这个选项就不会生效吧
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部