From: ilho kim Date: Thu, 30 Mar 2023 05:54:53 +0000 (+0900) Subject: Decrease timeout of client socket X-Git-Tag: accepted/tizen/unified/20230331.225112~1 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fappfw%2Fpkgmgr-info.git;a=commitdiff_plain;h=2bb79cf522986c69559d012a56b5e21b9c175bd8 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 --- 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 {