title: NodeRED - Connect ECONNREFUSED with multiples HTTP requests
body: <p>We are encountering an issue when we are doing a lot of requests using <strong>HTTP Request</strong> on our NodeJS API server using <strong>NodeRED</strong>. </p>
  
  <p>By the way, we also tested this using our <a href="https://www.npmjs.com/package/node-red-contrib-http-request" rel="nofollow">WWW Request</a> node which his implemented on the <strong>Request library</strong>. The result is the same :(</p>
  
  <p>Here is the error stacktrace: </p>
  
  <pre><code>error:
    { message: 'Error: connect ECONNREFUSED 163.113.172.80:1337',
      source:
       { id: '5d2aa78c.a2d558',
         type: 'http-request',
         name: undefined,
         count: 1 },
      stack: 'Error: connect ECONNREFUSED 163.113.172.80:1337\n    at
      Object.exports._errnoException (util.js:856:11)\n    at
      exports._exceptionWithHostPort (util.js:879:20)\n    at
      TCPConnectWrap.afterConnect [as oncomplete] (net.js:1062:14)' } }
  </code></pre>
  
  <p>Of course, we tested our API server using Apache Benchmark (ab CLI) with success (no failure) and an API Rate of 500 req/s.</p>
  
  <p><strong>Technical information :</strong></p>
  
  <ul>
  <li>Node-RED version: v0.14.5</li>
  <li>Node.js  version: v5.5.0</li>
  <li>Windows_NT 6.1.7601 x64 LE</li>
  <li>Processor: Intel Xeon CPU E5-630 v3 3.70Ghz 8 Cores</li>
  <li>Memory: 64 Gb</li>
  </ul>
  
  <p>Any idea ?</p>