Fix rpc port creation timing 66/286266/5
authorSuyeon Hwang <stom.hwang@samsung.com>
Tue, 3 Jan 2023 03:33:06 +0000 (12:33 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Thu, 5 Jan 2023 09:28:56 +0000 (18:28 +0900)
commit67a644b56f40dc96a24b71f38aa239c306a19051
tree11ebe91b99bbfb3de33394c76ae2fc86f9ff40ef
parentcf6d897ace19be5ceb7b9282ff5cdbb4be598b69
Fix rpc port creation timing

- Issue:
Even if the tidl connection is out, client lib may ignore connect
request.
And also, the tidl can not re-connect synchronously right after the tidl
is disconnected.

- Solution:
TIDL connect request is up to connected flag variable in tidl info
structure. However, the connected flag is only set by connected,
rejected, and disconnected event callback. And also, tidl can not
re-connect synchronously right after the disconnect() of tidl is invoked.
So, current client lib can not connect to stub in some specific
situation.
To solve this issue, this patch changes the rpc port creation timing.
Through this patch, tts_tidl module always reset the rpc port when the
io error occurs. And also, tts_tidl module can assure the connection by
creating new rpc port when the client want to prepare.

Change-Id: I8cfc143aebb331389d1fb205b7526b43f0301fee
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
client/tts_tidl.c
tests/src/tts_unittests.cpp