我使用add_magnet_uri访问信息,但有一些资源响应较慢,我应该使用什么来设置总超时时间?
http://www.rasterbar.com/products/libtorrent/manual.html
:(我没有找到相关的设置
params = {
'save_path': '/home/sdht/data',
'storage_mode': lt.storage_mode_sparse(),
'paused': False,
'auto_managed': True,
'duplicate_is_error': True
}
handle = lt.add_magnet_uri(self.ses, link, params)
while (not handle.has_metadata()):
time.sleep(.1)发布于 2015-02-16 04:53:56
对于无法在libtorrent中下载的torrents没有超时。当时间戳被添加时,你可以查询torrent,如果它是在足够长的时间之前添加的,并且它仍然没有完成,你可以删除它。
加载一个空闲的torrent也没有太多的开销,所以你可能想要并行地添加所有你想要解决的问题。
此外,您可能希望小心地将它们都设置为auto_managed: True,因为这样一来,停滞的激流可能会阻止启动新的激流。如果您将auto_managed设置为False,它们都将被强制启动。
发布于 2015-02-09 14:20:35
地址:http://www.rasterbar.com/products/libtorrent/manual.html#session-settings
sts.user_agent = "USA Global Download"
sts.tracker_completion_timeout = 5
sts.tracker_receive_timeout = 5
sts.stop_tracker_timeout = 5
sts.active_downloads = -1
sts.active_seeds = -1
sts.active_limit = -1
sts.auto_scrape_min_interval = 5
sts.udp_tracker_token_expiry = 120
sts.min_announce_interval = 1
sts.inactivity_timeout = 60
sts.connection_speed = 10
sts.allow_multiple_connections_per_ip = True
sts.max_out_request_queue = 128
sts.request_queue_size = 3
sts.use_read_cache = Falsehttps://stackoverflow.com/questions/28402607
复制相似问题