Skip to content

Commit

Permalink
Solve the problem of being unable to enter the control center
Browse files Browse the repository at this point in the history
  • Loading branch information
liaozhiwei-liaozhiwei committed Feb 24, 2025
1 parent 506bca5 commit 7aa8ce9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
9 changes: 9 additions & 0 deletions Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,13 @@ config ACTIVITY_SERVICE_LOG_WITH_COLOR
help
Enable log with color

config AMS_REQUEST_TIMEOUT_MS
int "Request timeout in milliseconds"
default 10000 if !CONFIG_MM_KASAN
default 30000 if CONFIG_MM_KASAN
help
This option defines the request timeout in milliseconds.
The default is 10000 ms (10 seconds) when KASAN is not enabled,
and 30000 ms (30 seconds) when KASAN is enabled.

endif
6 changes: 1 addition & 5 deletions server/TaskBoard.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,7 @@ enum TASK_LABEL {
SERVICE_STATUS_END = 230,
};

#ifdef CONFIG_MM_KASAN
#define REQUEST_TIMEOUT_MS 30000 // 30 seconds
#else
#define REQUEST_TIMEOUT_MS 10000 // 10 seconds
#endif
constexpr int REQUEST_TIMEOUT_MS = CONFIG_AMS_REQUEST_TIMEOUT_MS;
/***************************************************************************/

} // namespace am
Expand Down

0 comments on commit 7aa8ce9

Please sign in to comment.