当 SFTP 连接中断时文件会发生什么情况?

发布于 2024-07-15 08:38:01 字数 64 浏览 5 评论 0原文

我需要实现从 Web 服务器到 SFTP 服务器的文件传输。 当文件传输过程中连接中断时,已经传输的字节会怎样?

I need to implement a file transferring from a web server to a SFTP server. When the connection is interrupted during the file transferring, what happens to the bytes already transferred?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

深海蓝天 2024-07-22 08:38:01

简短回答:已传输的文件部分丢失/垃圾收集/标记为删除

Short Answer: The part of the file already transferred is lost/garbage collected/marked for deletion

天生の放荡 2024-07-22 08:38:01

除非 SFTP 服务器具有恢复中断传输的内置功能(不确定是否存在,如果存在则可能是一个插件),否则文件根本不会被传输。

Unless the SFTP server has built-in capabilities to resume an interrupted transfer (not sure if this exists, if it does it would probably be an addon), the file will not be transferred at all.

倾城花音 2024-07-22 08:38:01

最可能的情况是服务器上现在存在部分传输的文件。

很少有服务器会将此类文件标记为删除 - 这意味着您永远无法恢复损坏的传输,而必须从头开始。

The most likely scenario is that a partially transferred file will now exist on the server.

Few servers would mark such a file for deletion - it would mean that you could never resume a broken transfer, but would have to start again from scratch.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文