Fix socket option of rpc port request 45/267545/1
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 7 Dec 2021 04:54:40 +0000 (13:54 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 7 Dec 2021 04:54:40 +0000 (13:54 +0900)
To pending the launch request, this patch changes the socket option to
AUL_SOCK_QUEUE. If the callee application is not ready to get launch requests,
AMD will pend the launch request to the pending item.

Change-Id: I10b7fd4117d38e3ede6b0c31128b1d729cfcebf6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/aul_rpc_port.cc

index d848e72..6dc0608 100644 (file)
@@ -146,7 +146,7 @@ extern "C" API int aul_rpc_port_usr_prepare_stub(const char* app_id,
   int ret = AppRequest(RPC_PORT_PREPARE_STUB, uid)
       .With(b)
       .SetAppId(app_id)
-      .SendSimply();
+      .SendSimply(AUL_SOCK_QUEUE);
   if (ret < 0) {
     _E("Failed to send request. app_id(%s), port_name(%s)", app_id, port_name);
     return ret;