1

I'm having this problem on node 4.2.4 when the number of server requests are getting to a certain level. The error is Cannot assign to read only property '_connections' and points to this line of code.

Any ideas?

Nick Dima
  • 1,587
  • 2
  • 18
  • 36

1 Answers1

0

Once the maximum number of connections is reached, everything stops being writable and becomes read only.

Increase the number of max connections.

var net = require('net');
var server = net.createServer();
server.maxConnections = 100 //or whatever number you want