Aria2c pause and resume every 5 seconds

萝らか妹 提交于 2019-12-12 04:46:19

问题


I have a problem with downloading files from a server, the problem is when I start to download files, download speed is good but after a couple, second download speed decreasing.

I am using aria2c and wants to there is any way to pause and resume download every 5 seconds?


回答1:


I solve my problem by using aria2c RPC INTERFACE.

aria2 provides JSON-RPC over HTTP and XML-RPC over HTTP interfaces that offer basically the same functionality. aria2 also provides JSON-RPC over WebSocket

I write a script in Node.js which use aria2.pause and aria2.unpause for pause and resume every 5 seconds



来源:https://stackoverflow.com/questions/44725279/aria2c-pause-and-resume-every-5-seconds

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!