title: Wait functionality in Wget not working as expected
body: <p><strong>Background:</strong><br>
  I am using wget (version 1.14-15.el7) on RedHat Linux (version 7.3 (Maipo)), in a Bash (version 4.2.46(1)) terminal.</p>
  
  <p>Unfortunately, I am limited to this particular RHEL image, so I can't upgrade to a newer version of wget.</p>
  
  <p><strong>Goal:</strong><br>
  I am trying to configure wget so that, if a download attempt fails, it does the following:<br>
  1) Retries the download 4 more times (total of 5 attempts)<br>
  2) Waits a FIXED amount of time (30 seconds) between download attempts ('retries')</p>
  
  <p>For context, here is a relevant snippet of the wget manual:  </p>
  
  <pre><code>   -w seconds
     --wait=seconds
         Wait the specified number of seconds between the retrievals.  Use of this option is
         recommended, as it lightens the server load by making the requests less frequent.
         Instead of in seconds, the time can be specified in minutes using the "m" suffix, in
         hours using "h" suffix, or in days using "d" suffix.
  
         Specifying a large value for this option is useful if the network or the destination
         host is down, so that Wget can wait long enough to reasonably expect the network error
         to be fixed before the retry.  The waiting interval specified by this function is
         influenced by "--random-wait", which see.
  
     --waitretry=seconds
         If you don't want Wget to wait between every retrieval, but only between retries of
         failed downloads, you can use this option.  Wget will use linear backoff, waiting 1
         second after the first failure on a given file, then waiting 2 seconds after the second
         failure on that file, up to the maximum number of seconds you specify.
  
         By default, Wget will assume a value of 10 seconds.
  </code></pre>
  
  <p>To be clear, I am using the <code>--wait</code> flag, NOT the <code>--waitretry</code> flag.</p>
  
  <p><strong>Process:</strong>  </p>
  
  <p>First, I export/set a wrong http_proxy and https_proxy, to ensure any download attempt will time out.</p>
  
  <p>I run the following command:
  <code>wget --tries=5 --wait=30 &lt;url&gt; -O &lt;output_filename&gt;</code></p>
  
  <p>At this point, the <code>--wait</code> functionality does NOT work as expected. Specifically, it does NOT wait 30s after each download attempt.</p>
  
  <p>Instead:<br>
  1) After the first attempt, it waits 1s.<br>
  2) After the 2nd attempt, it waits 2s.<br>
  3) After the 3rd attempt, it waits 3s.<br>
  and so on ...</p>
  
  <p>In other words, despite using the <code>--wait</code> flag (which should result in a fixed waiting time between download attempts), wget seems to be performing a 'linear backoff' as described in the <code>--waitretry</code> flag section.</p>
  
  <p><strong>PROBLEM:</strong><br>
  I want the functionality of the <code>--wait</code> flag, NOT the <code>--waitretry</code> flag.  </p>
  
  <p>Unfortunately, the <code>--wait</code> flag seems to be acting like the <code>--waitretry</code> flag -- is there any way to get around this apparent bug in wget, so that using the <code>--wait</code> flag results in the expected fixed waiting time between download attempts?</p>