Skip to content

Commit 0136fa0

Browse files
authored
Notify arbitrator client of timeout
When transport times out, and the client is woken up. It should be informed that it's message buffer is invalid. Set the status of the codec to timeout, so a correct error handler is triggered in the client.
1 parent 5c2c6b7 commit 0136fa0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

erpc_c/infra/erpc_transport_arbitrator.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ erpc_status_t TransportArbitrator::receive(MessageBuffer *message)
7070
{
7171
if (client->m_isValid)
7272
{
73+
client->m_request->getCodec()->updateStatus(kErpcStatus_Timeout);
7374
client->m_sem.put();
7475
}
7576
}

0 commit comments

Comments
 (0)