#include "muse_core_internal.h"
-#define MUSE_SERVER_WATCHDOG_CHECK_PERIOD 10
+#define MUSE_SERVER_WATCHDOG_CHECK_PERIOD 30
#define MUSE_SERVER_WATCHDOG_CHECK_COUNT 3
-#define MUSE_SERVER_WATCHDOG_TIMER_PERIOD 5
+#define MUSE_SERVER_WATCHDOG_TIMER_PERIOD 10
typedef struct muse_server_watchdog {
GMutex lock;
{
muse_module_h module = (muse_module_h)data;
char err_msg[MUSE_MAX_MSG_LEN];
+ int api_module, disp_api, timeout;
LOGE("Restart muse server");
if (module) {
- snprintf(err_msg, sizeof(err_msg), "[DEADLOCK] %s {%d}'s dispatcher (%d) does not retrun value",
- muse_server_config_get_instance()->host[module->api_module], module->pid, module->last_cmd);
+ api_module = module->api_module;
+ disp_api = module->last_cmd;
+ timeout = _muse_server_module_get_timeout(api_module, disp_api);
+ snprintf(err_msg, sizeof(err_msg), "[DEADLOCK] %s {%d}'s dispatcher (%d) does not retrun value within (%d) second",
+ muse_server_config_get_instance()->host[api_module], module->pid, disp_api, timeout);
LOGE("%s", err_msg);
if (muse_server_is_log_enabled())