Detect server deadlocks and trigger the auto-restart mechanism.

This commit is contained in:
JoelKatz
2013-05-08 15:21:22 -07:00
parent 34a15c2baa
commit 04b0f968fd
3 changed files with 28 additions and 1 deletions

View File

@@ -593,6 +593,8 @@ void NetworkOPs::checkState(const boost::system::error_code& result)
{
ScopedLock sl(theApp->getMasterLock());
theApp->getLoadManager().noDeadLock();
std::vector<Peer::pointer> peerList = theApp->getConnectionPool().getPeerVector();
// do we have sufficient peers? If not, we are disconnected.