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

 
 

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

Submitter:  Rene Bartsch <renne>
Submitted:  Sun 11 Apr 2010 05:36:57 PM UTC
   
 
Category:  Program Logic Severity:  3 - Normal
Priority:  5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  1.11.4 Operating System:  GNU/Linux
Reproducibility:  Every Time Fixed Release:  None
Planned Release:  None Regression:  None
Work Required:  None Patch Included:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

  Spam posted by 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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code