我用add_magnet_uri獲取信息,但是有一些資源要慢慢迴應,我應該用什麼來設置總超時時間?Libtorrent如何設置超時時間?
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)