xunlei-lixian icon indicating copy to clipboard operation
xunlei-lixian copied to clipboard

Retry when server returns 502

Open biergaizi opened this issue 10 years ago • 1 comments

Sometimes, xunlei's server is unstable and return 502 Bad Gateway.

正在解析主机 gdl.lixian.vip.xunlei.com... 125.39.70.242
正在连接 gdl.lixian.vip.xunlei.com|125.39.70.242|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 502 Bad Gateway
2014-05-17 11:26:30 错误 502:Bad Gateway。

...

  File "/usr/lib64/python2.7/site-packages/xunlei-lixian/lixian_download_tools.py", line 71, in wget_download
    raise Exception('wget exited abnormally')
Exception: wget exited abnormally

xunlei-lixian should handle this situation and retry.

biergaizi avatar May 17 '14 03:05 biergaizi

try something like this:

lx config -- wget-opts "--tries=0 --retry-connrefused"

iambus avatar Jun 01 '14 17:06 iambus