FG
💻 Software

How to set wget to timeout after downloading more than a fixed duration

Fresh5 days ago
Mar 15, 202613288 views
Confidence Score0%
0%

Problem

I want wget to (attempt to) start downloading, then if isn't done after 10 seconds, I want it to give up. Seems like a reasonable try, but it seems like it only sets --dns-timeout, --connect-timeout, and --read-timeout. Thus, it could wait 9 seconds for dns, another 9 for connect and then keep down…

Error Output

wget --timeout 10 http://url

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to set wget to timeout after downloading more than a fixed duration

Low Risk

Basically this will be something like:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment