title: wget hangs with -r and -O -
body: <p>This is a <strong>VERY</strong> strange <code>wget</code> behavior. I'm on debian 7.2.</p>
  
  <pre><code>wget -r -O - www.blankwebsite.com
  </code></pre>
  
  <p>hangs forever. And I mean it <em>hangs</em>, it isn't searching through the internet,
  I can verify it with a <code>strace</code>. 
  If I do this:</p>
  
  <pre><code>while read R
  do
     wget -r -O - www.blankwebsite.com
  done &lt; smallfile
  </code></pre>
  
  <p>with <code>smallfile</code> containing a single line, the command exits in a few seconds.</p>
  
  <p>I tried also with</p>
  
  <pre><code>wget -r -O - localhost/test.html
  </code></pre>
  
  <p>with an empty <code>test.html</code> file, same results. To me, it sounds like a bug.<br>
  Everything runs fine changing <code>-O -</code> with <code>-O myfile</code> or removing <code>-r</code>.<br>
  I used <code>-O -</code> because I was passing output to <code>grep</code>.<br>
  Could anyone explain that? Have you seen anything similar?</p>