title: Limit maximum connections to NodeJS Server
body: <pre><code>var http = require('http');
  var express = require("express");
  var BinaryServer = require('binaryjs').BinaryServer;
  var fs = require('fs');
  
  var addon = require('./build/Release/addon.node');
  console.log(addon);
  
  var bodyParser = require("body-parser");
  var app = express();
  var exec = require('child_process').execFile;
  var WebSocket = require('faye-websocket');
  var server = http.createServer(app);
  
  server.maxConnections = 2;//&lt;-----
  </code></pre>
  
  <p>I am trying to limit connections to my http server. To do that I use <a href="https://nodejs.org/api/all.html#all_server_maxconnections_1" rel="nofollow">maxConnections</a>. Unfortunately this seems not working. Is it because I am testing this in localhost mode? </p>