如何避免 wget 挂起

如何避免 wget 挂起

我使用 gsm 调制解调器下载通过 mms 发送给它的图像文件。从我家里的 debian 盒子下载图像文件没有任何问题。但是,每当我尝试从办公室的 deban 盒子下载图像文件时,我都会得到:

wget -d -r --tries=2 --bind-address=25.234.65.247 http://ttnmmsget.msg.eng.t-mobile.com/mms/wapenc?T=mavodi-1-13b-61-4-9c-6610710
Setting --recursive (recursive) to 1
Setting --tries (tries) to 2
Setting --bind-address (bindaddress) to 25.234.65.247
DEBUG output created by Wget 1.16 on linux-gnu.

URI encoding = ‘UTF-8’
URI encoding = ‘UTF-8’
Enqueuing http://ttnmmsget.msg.eng.t-mobile.com/mms/wapenc?T=mavodi-1-13b-61-4-9c-6610710 at depth 0
Queue count 1, maxcount 1.
[IRI Enqueuing ‘http://ttnmmsget.msg.eng.t-mobile.com/mms/wapenc?T=mavodi-1-13b-61-4-9c-6610710’ with ‘UTF-8’
Dequeuing http://ttnmmsget.msg.eng.t-mobile.com/mms/wapenc?T=mavodi-1-13b-61-4-9c-6610710 at depth 0
Queue count 0, maxcount 1.
--2018-12-20 09:32:51--  http://ttnmmsget.msg.eng.t-mobile.com/mms/wapenc?T=mavodi-1-13b-61-4-9c-6610710
Resolving ttnmmsget.msg.eng.t-mobile.com (ttnmmsget.msg.eng.t-mobile.com)... 208.54.99.202
Caching ttnmmsget.msg.eng.t-mobile.com => 208.54.99.202
Connecting to ttnmmsget.msg.eng.t-mobile.com (ttnmmsget.msg.eng.t-mobile.com)|208.54.99.202|:80... Releasing 0x08c080b8 (new refcount 0).
Deleting unused 0x08c080b8.
Closed fd 4
failed: Connection timed out.
Releasing 0x08c07fc8 (new refcount 1).
Retrying.

不管我设置 tries=n 多少次,它最终都会放弃。有什么想法可以解释为什么会出现这种情况以及如何解决它吗?

相关内容