diff --git a/interfaces/innerkits/client/appspawn_client.h b/interfaces/innerkits/client/appspawn_client.h index 22f3b9076090056dbef4e6a5502e7814d53bd0ba..b979e2b6385059c68faf21d10917388e73bb166b 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 76f4a8e6ce27543bdbe3f3e4c5d5a3f2d3922196..5bc324e7a47db1309a6ba19c4a5fcfe59b8b9af6 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