Client: aborted requests due to secure channel closed shall not be reported as timed out
Description
In a case a secure channel is closed when requests have been sent using SOPC_ToolkitClient_AsyncSendRequestOnSession
or SOPC_ToolkitClient_AsyncSendDiscoveryRequest
and secure channel is closed by server before receiving response, SE_SND_REQUEST_FAILED
event is received indicating the status SOPC_STATUS_TIMEOUT
instead of SOPC_STATUS_CLOSED
.
Analysis
Internal event SC_REQUEST_TIMEOUT
is raised from secure channel layer to services layer for all requests pending when a secure channel is closed. Whereas SC_SND_FAILURE
should be raised to indicate secure channel closed during this pending request.