Detect server deadlocks and trigger the auto-restart mechanism.

This commit is contained in:
JoelKatz
2013-05-08 15:21:22 -07:00
parent 4f6344bb13
commit d0d071c46b
3 changed files with 28 additions and 1 deletions

View File

@@ -595,6 +595,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.