iambus/xunlei-lixian — Issue #43: retry次数问题
Author: liukangxu
Created: 2012-03-01 14:56:07+00:00
State: open

似乎只能重试3次？

以下是aria2c跟的结果：

Status Legend:
(ERR):error occurred.

aria2 will resume download if the transfer is restarted.
If there are any errors, then see the log file. See '-l' option in help/man page for details.
Traceback (most recent call last):
File "lixian_cli.py", line 709, in
execute_command()
File "lixian_cli.py", line 706, in execute_command
commands[command](args[1:])
File "lixian_cli.py", line 393, in download_task
download_multiple_tasks(client, download, tasks, download_args)
File "lixian_cli.py", line 271, in download_multiple_tasks
download_single_task(client, download, task, options)
File "lixian_cli.py", line 264, in download_single_task
download2(client, download_url, filename, task)
File "lixian_cli.py", line 196, in download2
download1(client, url, path, size)
File "lixian_cli.py", line 178, in download1
download(client, url, path)
File "lixian_cli.py", line 128, in aria2_download
raise Exception('aria2c exited abnormaly')
Exception: aria2c exited abnormaly
因为上面都是进度条，所以看不到重试了多少次，只能重试3次是wget下跟的结果。在我的网络环境下，重试一般都是有效的，但过一段时间（不定），又会出现502或504错误，希望可以间隔30秒或60秒自动重试一次，并且不限制重试次数。