Increase timeout of client socket 79/283279/2 accepted/tizen/unified/20221104.082302
authorSangyoon Jang <jeremy.jang@samsung.com>
Fri, 21 Oct 2022 08:10:29 +0000 (17:10 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Mon, 31 Oct 2022 04:09:34 +0000 (13:09 +0900)
Increase timeout for read request. When system is busy, clients read
request fail by timeout.

Change-Id: I1ebdc879cd15bf812737818c66197b1c8440de67
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
src/common/socket/client_socket.cc

index f386e00..e60015b 100644 (file)
@@ -68,7 +68,7 @@ bool ClientSocket::Connect(ReqType req_type) {
   if (Create() < 0)
     return false;
 
-  SetTimeout(IsDBWriteRequest(req_type) ? 60 * 1000 : 5 * 1000);
+  SetTimeout(IsDBWriteRequest(req_type) ? 60 * 1000 : 30 * 1000);
 
   int retry_cnt = 3;
   do {