Use JobQueue to process RPC-JSON asynchronously

This commit is contained in:
Vinnie Falco
2013-09-22 01:07:58 -07:00
parent 7dd41ffb5b
commit d16aa7f928
14 changed files with 215 additions and 85 deletions

View File

@@ -3736,6 +3736,8 @@ Json::Value RPCHandler::doCommand (const Json::Value& params, int iRole, LoadTyp
{
if (iRole != Config::ADMIN)
{
// VFALCO NOTE Should we also add up the jtRPC jobs?
//
int jc = getApp().getJobQueue ().getJobCountGE (jtCLIENT);
if (jc > 500)