Modify socket receive timeout to 5.5 seconds
authorChanggyu Choi <changyu.choi@samsung.com>
Tue, 31 Dec 2024 06:23:50 +0000 (15:23 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Tue, 31 Dec 2024 06:30:03 +0000 (15:30 +0900)
If the system is slow, sometimes amd sends timeout results late.
In this case, there is a problem that the result(pid) for the first launch request is not delivered.
To resolve this, the socket receiving timeout is slightly increased.

Change-Id: I5e741aad939beb8a90904683a9d32e7b1fbd79fa
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
src/aul/aul_sock.cc

index 833a7d494a328d920a614c84643ee0cfeee5d794..c8bb6832744293c76b9dcc2207e35c6af14d8d92 100644 (file)
@@ -67,7 +67,7 @@ class SocketTimeout {
   }
 
  private:
-  timeval time_val_ = { 5, 200 * 1000 };
+  timeval time_val_ = { 5, 500 * 1000 };
 };
 
 std::string GetSocketPath(pid_t pid, uid_t uid) {