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?
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?
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