bugGNU Wget - Bugs: bug #29517, WGET does not honor the HTTP 503...

 
 

bug #29517: WGET does not honor the HTTP 503 Retry-After header

Submitted by:  Rene Bartsch <renne>
Submitted on:  Sun 11 Apr 2010 05:36:57 PM UTC  
 
Category: Program LogicSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Open
Release: 1.11.4Operating System: GNU/Linux
Reproducibility: Every TimeFixed Release: None
Planned Release: NoneRegression: None
Work Required: NonePatch Included: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

 Spam posted by an anonymous
Sun 11 Apr 2010 05:36:57 PM UTC, original submission:

There are services using HTTP code 503 for download-queues announcing the availability of the next download slot with the "Retry-After" header. So WGET should honor the "Retry-After" header to handle such download queues correctly instead of exiting.

Like CURL, WGET can implement a "--retry-max-time" flag to prevent infinite looping. That way the user can define a maximum time after which WGET quits retrying (e.g. 25200 seconds = 7 hours).

From IETF RFC 2616:

------------------------------ snip -----------------------------

10.5.4 503 Service Unavailable

The server is currently unable to handle the request due to a
temporary overloading or maintenance of the server. The implication
is that this is a temporary condition which will be alleviated after
some delay. If known, the length of the delay MAY be indicated in a
Retry-After header. If no Retry-After is given, the client SHOULD
handle the response as it would for a 500 response.

Note: The existence of the 503 status code does not imply that a
server must use it when becoming overloaded. Some servers may wish
to simply refuse the connection.

------------------------------ snap -----------------------------

Rene Bartsch <renne>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by renne (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1