Hi,
My client program calls a service which takes about 100 seconds to finish.
The service at the server side seems to be running good.
However, my client program times out in the middle (gets .QJsonRpcMessage::Error)
Here comes the client part:
QJsonRpcMessage request = QJsonRpcMessage::createRequest("agent.longRunningTask", searchPath);
QJsonRpcMessage response = m_searchclient->sendMessageBlocking(request);
if (response.type() == QJsonRpcMessage::Error) {
qDebugg() << "Failed to RPC to service: " << response.errorData();
return;
}
How could I run a long task without timeout?
Thank you very much.
James Hwang