Destroy old rpc handle for clean reconnection 63/293763/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:27:19 +0000 (20:27 +0900)
commitf54552f9ce0be1f3035d4d2cea14511a23c15e7a
tree7eb44816a769d5cf77ec9b940cdcee9357cd4742
parentd835830ad52586d5925814d6b12aed7e11a9e3f5
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