Skip to content
Commit 6bc6e7f6 authored by Luca Fancellu's avatar Luca Fancellu Committed by Diego Sueiro
Browse files

cam-service: Implement retry mechanism for accept()



Currently the code inside dispatch_thread is calling
accept() to establish the connections, however the accept()
function can sometimes fail with recoverable errors, but
the current code doesn't distinguish between recoverable and
catastrophic one and stops the cam-service.

To overcome this issue, implement a retry mechanism that
will retry the accept() call when it returns a recoverable
error, print also a debug message in that case before retrying.

Signed-off-by: Luca Fancellu's avatarLuca Fancellu <luca.fancellu@arm.com>
parent 7f42f6fb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment