title: Can someone explain an ENOBUFS error?
body: <p>I'm making a bunch calls to a database that contains a large amount of data on a Windows 7 64 bit OS. As the calls are queuing up I get the error (for ever HTTP call after the first error):</p>
  
  <pre><code>Error: connect ENOBUFS *omitted* - Local (undefined:undefined)
  </code></pre>
  
  <p>From my google searching I've learned that this error means that my buffer has grown too large and my system's memory can no longer handle the buffer's size. </p>
  
  <p>But I don't really understand what this means. I'm using node.js to with an HTTPS library to handle my requests. When the requests are getting queued and the sockets are opening is the buffer's size allocated in RAM? What will allow the buffer to expand to a greater size? Is this simply a hardware limitation?</p>
  
  <p>I've also read that some OS are able to handle the size of the buffer better than other OS's. Is this the case? If so which OS would be better suited for running a node script that needs to fetch <em>a lot</em> of data via HTTPS requests?</p>
  
  <p>Here's how I'm doing my requests.</p>
  
  <pre><code>for (let j = 0; j &lt; dataQueries; j++) {
   getData(function())
  }
  
  function getData(callback){
   axios.get(url, config)
     .then((res) =&gt; {
        // parse res 
        callback(parsedRes(res))
     }).catch(function(err) {
        console.log("Spooky problem alert! : " + err);
     })
  }
  </code></pre>
  
  <p>I've omitted some code for brevity, but this is generally how I'm doing my requests. I have a for loop that for every iteration launches a GET request via axios. </p>
  
  <p>I know there is an axios.all command that is used for storing the promise the axios.HTTPMethod gives you, but I saw no change in my code when I set it up to store promises and then iterate over the promises via axios.all</p>