Ping websocket connections every two minutes.

Detect and close non-responsive connections.
UNTESTED
This commit is contained in:
JoelKatz
2012-12-25 10:19:24 -08:00
parent 7c13c57638
commit 9124c91884
4 changed files with 88 additions and 15 deletions

View File

@@ -1386,6 +1386,17 @@ void NetworkOPs::storeProposal(const LedgerProposal::pointer& proposal, const Ri
props.push_back(proposal);
}
InfoSub::~InfoSub()
{
NetworkOPs& ops = theApp->getOPs();
ops.unsubTransactions(this);
ops.unsubRTTransactions(this);
ops.unsubLedger(this);
ops.unsubServer(this);
ops.unsubAccount(this, mSubAccountInfo, true);
ops.unsubAccount(this, mSubAccountInfo, false);
}
#if 0
void NetworkOPs::subAccountChanges(InfoSub* ispListener, const uint256 uLedgerHash)
{