为什么通过FTP上传文件每10分钟需要更多时间

编程入门 行业动态 更新时间:2024-10-22 21:19:55
本文介绍了为什么通过FTP上传文件每10分钟需要更多时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好, 我写了一个简单的FTP程序,将4个文本文件传输到循环中的设备。(为了测试我们想要一个ftp工具,它将连续上传4个txt文件没有停止)。 该工具似乎工作正常,在无限循环中重复上传文件。 但是,我们目睹了一些事情在日志文件中很有意思。 我们观察到每10分钟一次(确切地说,与其余的传输过程相比,文件上传过程需要更多时间,即假设一个文件上传通常需要2秒钟,同样的文件需要大约6分钟上传,每10分钟上传一次文件。 有没有人知道为什么会发生这种情况?我们没有在程序中设置任何类型的超时,并且一旦完成上传上一个文件,该工具立即开始传输下一个文件。 任何种类的帮助或建议将不胜感激。 谢谢 Dinesh。

Hello all, I wrote a simple FTP program to transfer 4 text files to a device in a loop.(for testing we wanted to have a ftp tool which will be uploading 4 txt files continuosly without stop). The tool seems to be working fine, uploading the files repeatedly in an endless loop. But, we witnessed something interesting in the log files. We observed that every 10 minutes (exact, the file uploading process takes more time compared to rest of the transfer process i.e. suppose a file which normally takes 2 seconds to upload, the same file takes around 6 minutes to upload, every 10 minutes of file uploading process. Does anyone has any clue why this could happen? We have not set any kind of timeouts in the program as well as the tool instantly begins the transfer of next file once it finishes uploading the previous file. Any kind of help or suggestions will be appreciated. Thanks Dinesh.

推荐答案

我的猜测是这可能与你的ISP。 如果你说你经常通过FTP上传文件,你的ISP可能会限制连接,以防止你占用带宽。 猜猜...... My guess is that this may be to do with your ISP. If as you say you are uploading files constantly via FTP, your ISP may be throttling the connection to prevent you from hogging bandwidth. Just a guess... [edit: fixed typo]

更多推荐

为什么通过FTP上传文件每10分钟需要更多时间

本文发布于:2023-11-26 20:11:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1635022.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:上传文件   时间   更多   FTP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!