Try to reprepare when IPC I/O error occurs 29/285229/3
authorSuyeon Hwang <stom.hwang@samsung.com>
Thu, 8 Dec 2022 02:02:12 +0000 (11:02 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Thu, 8 Dec 2022 04:57:05 +0000 (13:57 +0900)
commita8ddbaffa498e5374b7a7ecd31bb0cc2f0b0b90e
treecbba944359ac20e7fffa09c284878f9f47af263e
parentba1f1b5a7c35c26ecda718a7e234fb4114ad2a71
Try to reprepare when IPC I/O error occurs

- Issue:
TTS API will be failed when the engine is terminated after the client
library already sends request.

- Solution:
Current client library does not handle the network connection failed
situation because almost those situations are covered by reprepare
logic. However, if the engine is terminated without handling client IPC
message, client library should returns error.
Thus, this patch adds new retry logic when network error occurs. Through
this logic, some of the issue case will be covered. However, if engine
has critical issue, then this logic also can cover those situations.

Change-Id: I07075e0139d058f9f9bc84026a00309bf1815066
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
client/tts_core.c
client/tts_tidl.c