Destroy old rpc handle for clean reconnection 62/293762/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Fri, 2 Jun 2023 11:27:19 +0000 (20:27 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Fri, 2 Jun 2023 11:31:47 +0000 (20:31 +0900)
commitf975df4fbaf542980b59946315fc324fc338ec5f
treee9bc1f04c4d8f910666a3a46192771215e4cc4ba
parentea2a3648c2700c5932d535a9a96e1467026ec36d
Destroy old rpc handle for clean reconnection

- Issue:
When the client is disconnected, sometimes, the rpc handle can be
expired.

- Solution:
When the client is disconnected, the client should try to reconnect.
However, sometimes, the client can try to reconnect with expired rpc
handle. In this case, the client library can not create new rpc handle,
because current logic only makes new rpc handle if the function returns
I/O error. To resolve this issue, this patch destroyes the old handle
if the client is disconnected. Through this change, the client will be
sure to reconnect with new rpc handle.

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