std::ref(agent), std::ref(agentRequest), std::ref(client),
CYNARA_API_SUCCESS, Timeout::ExpectMode::TIMEOUT);
agentRequest.assertCancel();
+ // The above call to getAgentRequest() calls client.process() to send CancelRequest. However,
+ // the client.process() may or might not receive CancelResponse because server immediately
+ // responds with CancelResponse (does not wait for agent response).
+ // On the client side, we cannot determine whether the CancelResponse was already read or not
+ // because the response callback is called immediately by client.cancel().
agent.putResponse(AgentResponse::createCancel(id));
- client.process(CYNARA_API_SUCCESS, Client::TimeoutExpectation::EXPECT_NO_TIMEOUT, 2);
}
void tcag11_cancel_processed_request_func()