From 34b65e322aaa35487f02332b724c499ca1917a32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=B5=A9?= Date: Thu, 6 Mar 2025 17:19:00 +0800 Subject: [PATCH] modify timeout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 杨浩 --- interfaces/innerkits/client/appspawn_client.h | 5 +++-- standard/appspawn_service.h | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/interfaces/innerkits/client/appspawn_client.h b/interfaces/innerkits/client/appspawn_client.h index 22f3b907..b979e2b6 100644 --- a/interfaces/innerkits/client/appspawn_client.h +++ b/interfaces/innerkits/client/appspawn_client.h @@ -31,14 +31,15 @@ extern "C" { #define ASAN_TIMEOUT 60 #else #define TIMEOUT_DEF 2 -#define ASAN_TIMEOUT 5 +#define ASAN_TIMEOUT 10 #endif #define RETRY_TIME (200 * 1000) // 200 * 1000 wait 200ms CONNECT_RETRY_DELAY = 200 * 1000 #define MAX_RETRY_SEND_COUNT 2 // 2 max retry count CONNECT_RETRY_MAX_TIMES = 2; #define NORMAL_READ_RETRY_TIME (3 * 1000 * 1000 + 500 * 1000) // 3.5s, Exceed WAIT_CHILD_RESPONSE_TIMEOUT by 0.5s -#define COLDRUN_READ_RETRY_TIME (5 * 1000 * 1000 + 500 * 1000) // 5.5s, Exceed COLD_CHILD_RESPONSE_TIMEOUT by 0.5s +// Exceed COLD_CHILD_RESPONSE_TIMEOUT by 0.5s +#define COLDRUN_READ_RETRY_TIME (ASAN_TIMEOUT * 1000 * 1000 + 500 * 1000) // only used for ExternalFileManager.hap #define GID_FILE_ACCESS 1006 diff --git a/standard/appspawn_service.h b/standard/appspawn_service.h index 76f4a8e6..5bc324e7 100644 --- a/standard/appspawn_service.h +++ b/standard/appspawn_service.h @@ -38,11 +38,11 @@ extern "C" { #define WAIT_CHILD_RESPONSE_TIMEOUT 60 //60s #elif APPSPAWN_TEST #define MAX_WAIT_MSG_COMPLETE (5 * 100) // 500ms -#define COLD_CHILD_RESPONSE_TIMEOUT 5 +#define COLD_CHILD_RESPONSE_TIMEOUT 10 #define WAIT_CHILD_RESPONSE_TIMEOUT 3 //3s #else #define MAX_WAIT_MSG_COMPLETE (5 * 1000) // 5s -#define COLD_CHILD_RESPONSE_TIMEOUT 5 +#define COLD_CHILD_RESPONSE_TIMEOUT 10 #define WAIT_CHILD_RESPONSE_TIMEOUT 3 //3s #endif -- Gitee