为什么通过FTP上传文件每10分钟需要更多时间 [英] Why uploading a file through FTP takes more time every 10 minutes

查看:136
本文介绍了为什么通过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分钟需要更多时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆