The last couple of days, my error log has been filled with this error:
send_package: error reading from socket: The socket is closed
I really don't know where this is coming from. It would seem that my MongoDB server is not opening the TCP socket, but I really am just guessing.
Has anyone seen this error before or know how to handle it?
The line generating the error is:
$mongo = new Mongo("mongodb://user:pwd@host/db",array('timeout'=>6000));
I'm also occasionally getting in from within the Pimple DIC:
class HurstDI extends \Pimple
{
public function __construct(){
$this['mongoUser'] = 'user';
$this['mongoPwd'] = 'pwd';
$this['mongoHost'] = "host/db";
$this['mongoTimeout'] = 6000;
$this['mongodb'] = function($c){
return new \MongoClient("mongodb://{$c['mongoUser']}:{$c['mongoPwd']}@{$c['mongoHost']}");
};
}
}
codeWed Jan 9 18:18:11 [initandlisten] connection accepted from 10.158.26.40:52664 #17298 Wed Jan 9 18:18:11 [initandlisten] connection refused because too many open connections: 819 Wed Jan 9 18:18:11 [initandlisten] connection accepted from 10.29.133.149:56104 #17299 Wed Jan 9 18:18:11 [initandlisten] connection refused because too many open connections: 819