From 2bb79cf522986c69559d012a56b5e21b9c175bd8 Mon Sep 17 00:00:00 2001 From: ilho kim Date: Thu, 30 Mar 2023 14:54:53 +0900 Subject: [PATCH] Decrease timeout of client socket 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 --- src/common/socket/client_socket.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/socket/client_socket.cc b/src/common/socket/client_socket.cc index e60015b..f386e00 100644 --- a/src/common/socket/client_socket.cc +++ b/src/common/socket/client_socket.cc @@ -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 { -- 2.7.4