Merge PR #159: Add a warning message in JsonRpcServer when a call times out
This commit is contained in:
commit
f884eb9195
@ -705,6 +705,7 @@ void JsonRPCServer::asyncReplyFinished()
|
|||||||
,"validating return value", formatAssertion(reply->handler()->name(), reply->method(), QMetaMethod::Method, reply->handler(), reply->data()).toLatin1().data());
|
,"validating return value", formatAssertion(reply->handler()->name(), reply->method(), QMetaMethod::Method, reply->handler(), reply->data()).toLatin1().data());
|
||||||
sendResponse(interface, reply->clientId(), reply->commandId(), reply->data());
|
sendResponse(interface, reply->clientId(), reply->commandId(), reply->data());
|
||||||
} else {
|
} else {
|
||||||
|
qCWarning(dcJsonRpc()) << "RPC call timed out:" << reply->handler()->name() << ":" << reply->method();
|
||||||
sendErrorResponse(interface, reply->clientId(), reply->commandId(), "Command timed out");
|
sendErrorResponse(interface, reply->clientId(), reply->commandId(), "Command timed out");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user