Decrease timeout of client socket 87/290687/1
authorilho kim <ilho159.kim@samsung.com>
Thu, 30 Mar 2023 05:54:53 +0000 (14:54 +0900)
committerilho kim <ilho159.kim@samsung.com>
Fri, 31 Mar 2023 00:27:32 +0000 (00:27 +0000)
The timeout was increased because the request received before the cache
creation is completed is delayed, but not the request is received after
the cache creation is completed, so the value is reduce again

Change-Id: Id208b540a6fbc94cc1094a2aa68046eaba99cb46
Signed-off-by: ilho kim <ilho159.kim@samsung.com>
(cherry picked from commit 2bb79cf522986c69559d012a56b5e21b9c175bd8)

src/common/socket/client_socket.cc

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