title: Nodejs Error: getaddrinfo ENOTFOUND & EADDRINFO
body: <p>I'm using the <a href="https://github.com/mikeal/request" rel="noreferrer">Request</a> module to fetch html pages, it works great but after some time I get errors <code>ENOTFOUND</code> and <code>EADDRINFO</code> on some of the requests. After looking around online I found some similar issues (<a href="https://github.com/mikeal/request/issues/699" rel="noreferrer">#699</a>, <a href="https://github.com/joyent/node/issues/5488" rel="noreferrer">#5488</a>, <a href="https://github.com/mikeal/request/issues/697" rel="noreferrer">#697</a>) and what I understand from it is that I'm probably not consuming some (or all?) of the responses and that at some point the app reaches the socket pool max size.</p>
  
  <p>I'm not really sure about all that, but I'm thinking about increasing <code>globalAgent.maxSockets</code> (to 100?) and always consuming the response by calling <code>response.resume()</code> at the beginning of the request callback. Does any of that make sense ? Or am I way off the tracks ?</p>
  
  <p>I've looked into Node's code to try to understand what <code>resume()</code> does but I'm not sure I found the right function (<a href="https://github.com/joyent/node/blob/master/lib/_stream_readable.js#L698" rel="noreferrer">#L698</a>).</p>
  
  <p>Thanks for your help.</p>