From 575e182148187ed0856b2182de5c57000232fb65 Mon Sep 17 00:00:00 2001 From: Sangyoon Jang Date: Fri, 21 Oct 2022 17:10:29 +0900 Subject: [PATCH] Increase timeout of client socket Increase timeout for read request. When system is busy, clients read request fail by timeout. Change-Id: I1ebdc879cd15bf812737818c66197b1c8440de67 Signed-off-by: Sangyoon Jang --- 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 f386e00..e60015b 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 : 5 * 1000); + SetTimeout(IsDBWriteRequest(req_type) ? 60 * 1000 : 30 * 1000); int retry_cnt = 3; do { -- 2.7.4