Decrease timeout of client socket 55/290655/1
authorilho kim <ilho159.kim@samsung.com>
Thu, 30 Mar 2023 05:54:53 +0000 (14:54 +0900)
committerilho kim <ilho159.kim@samsung.com>
Thu, 30 Mar 2023 07:44:59 +0000 (16:44 +0900)
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>
src/common/socket/client_socket.cc

index e60015b..f386e00 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 {