title: Socket Io limiting only 6 connection in Node js
body: <p>So i came across a problem.I am trying to send {id} to my rest API (node js) and in response, I get data on the socket.</p>
  <p><strong>Problem:</strong>
  For first 5-6 time it works perfectly fine and display Id and send data back to socket.But after 6 time it does not get ID.
  I tried this <a href="https://github.com/socketio/socket.io/issues/1145" rel="nofollow noreferrer">https://github.com/socketio/socket.io/issues/1145</a>
  and  <a href="https://github.com/socketio/socket.io/issues/1145" rel="nofollow noreferrer">https://github.com/socketio/socket.io/issues/1145</a> but didn't solve the problem.
  On re compiling the server it shows previous {ids} which i enter after 6 time.it like after 5-6 time it is storing id in some form of cache.
  Here is my API route.
  //this route only get {id} 5-6 times .After 5-6 times it does not display receing {id}.</p>
  <pre><code>const express = require(&quot;express&quot;);
  var closeFlag = false;
  const PORT = process.env.SERVER_PORT; //|| 3000; 
  const app = express();
  var count = 1;
  http = require('http');
  http.globalAgent.maxSockets = 100;
  http.Agent.maxSockets = 100;
  const serverTCP = http.createServer(app)
  
  // const tcpsock = require(&quot;socket.io&quot;)(serverTCP)
  const tcpsock = require('socket.io')(serverTCP, {
    cors: {
      origin: '*',
    }
    ,  perMessageDeflate: false 
  });
  app.post(&quot;/getchanneldata&quot;, (req, res) =&gt; {
    console.log(&quot;count : &quot;+count)
  
    count++;// for debugging purpose
    closeFlag = false;
    var message = (req.body.val).toString()
    console.log(&quot;message : &quot;+message);
    chanId = message;
  
    client = dgram.createSocket({ type: 'udp4', reuseAddr: true });
    client.on('listening', () =&gt; {
      const address = client.address();
    });
  
  
    client.on('message', function (message1, remote) {
  
  
      var arr = message1.toString().split(',');
      
      }
    }); 
  
    client.send(message, 0, message.length, UDP_PORT, UDP_HOST, function (err, bytes) {
      if (err) throw err;
      console.log(message);
      console.log('UDP client message sent to ' + UDP_HOST + ':' + UDP_PORT);
      // message=&quot;&quot;;
    });
  
  
    client.on('disconnect', (msg) =&gt; {
      client.Diconnected()
      client.log(client.client)
  
  
    })
  }
  );
  </code></pre>