title: Ant waitfor is waiting longer than it needs to
body: <p>I'm using Ant to wait until a URL is accessible before running an exec task, but it is waiting for far longer than I want it to.</p>
  
  <p>My <code>waitfor</code> -</p>
  
  <pre><code>&lt;waitfor maxwait="3" maxwaitunit="minute" checkevery="500"&gt;
      &lt;http url="http://127.0.0.1:${product.listenport}/start/"/&gt;
  &lt;/waitfor&gt;
  </code></pre>
  
  <p>Almost as soon as I see this output on the terminal, I load the URL in the browser and get the page as expected, and still Ant waits (probably longer than the <code>maxwait</code> value even).</p>
  
  <p>Is there a problem with this implementation?</p>