erpc icon indicating copy to clipboard operation
erpc copied to clipboard

Timeout for eRPC call

Open chandiniib opened this issue 6 years ago • 5 comments

Hi

Is there any way we can set timeout from client[A7] so that if M4 die's by any case A7 get notification so that we can reset the connection .

Thank you Chandini

chandiniib avatar Apr 18 '19 12:04 chandiniib

@chandiniib Hello Chandini,

I am using the eRPC and i have the same need. Did you find a way for this requirement of timeout ? Any suggestions for me to handle such scenarios.

Thanks.

anirudhgargi avatar Jul 02 '20 03:07 anirudhgargi

Hi guys, I did this PR #130. Please take a look into it and comment if it will fit your needs. But this implementation is only for C, but if you are interested in python support you can create own PR inspirated by mine.

Hadatko avatar Sep 25 '20 07:09 Hadatko

Just as a curiosity, why would a timeout in the transport itself not allow that to be solved? If one core dies in the middle of an RPC, wouldn't the transport on the other one, waiting for a RX or TX, timeout and then action can be taken?

pgu-swir avatar Sep 27 '20 06:09 pgu-swir

Hello @Hadatko, Thanks for the patch. That's a useful addition, adding pre and post handler to call let's you handle error scenarios in better ways. Will see how to implement it.

@pgu-swir: Yes, you are correct. We added a client timeout in transport layer in case something goes wrong on Server side. Helps unblock the execution on client side.

Thanks guys.

anirudhgargi avatar Sep 27 '20 09:09 anirudhgargi

Can i close this issue? Or do you think it make sense to keep it open?

Hadatko avatar Oct 03 '20 09:10 Hadatko

Closing due to inactivity and issue is likely solved

Hadatko avatar Jan 04 '23 16:01 Hadatko