我是否需要为并发下载(使用 cURL)设置下载速度限制,或者它们会平均分配?
我的网站(在 ubuntu 10,04 下运行)使用户能够从网络链接中抓取文件.. 我是否需要为每个文件设置下载速率限制,以便所有文件都可以同时下载? 另外,我是否需要设置全局下载限制(针对所有文件),以便我的服务器连接可以处理直接从我的服务器下载文件、浏览我的网站等的其他请求?
谢谢 :)
My website (run under ubuntu 10,04) enables users to grab files from web links ..
Do I need to set a download rate limit per single file , so all can download at the same time ?
And also , do I need to set a global download limit (for all files together) so that my server connection can handle other requests of downloading files directly from my server , browsing my website ...etc ?
Thank you :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
速率限制卷曲支持是按“句柄”设置的,这使得它每次传输。
一般来说,网络旨在处理共享紧密共享资源的许多连接,因此在大多数情况下,您根本不需要限制任何传输速率。
The rate limit curl supports is set per "handle", which makes it per single transfer.
Networks in general are designed to handle many connections sharing a tight shared resource, so in most situations you won't need to limit any transfer rates at all.