inactivity timeout set to 60

This commit is contained in:
lxsang 2021-01-05 18:00:51 +00:00
parent 44a33e5413
commit 5d1998ef1f
2 changed files with 2 additions and 3 deletions

Binary file not shown.

View File

@ -10,7 +10,7 @@
#include "utils.h" #include "utils.h"
#include "bst.h" #include "bst.h"
#define MAX_VALIDITY_INTERVAL 20 #define MAX_VALIDITY_INTERVAL 60 // 1minute
#define MAX_FIFO_NAME_SZ 255 #define MAX_FIFO_NAME_SZ 255
#define POLL_EVENT_TO 100 // ms #define POLL_EVENT_TO 100 // ms
@ -818,8 +818,7 @@ void antd_scheduler_ext_statistic(int fd, void *data)
int antd_scheduler_validate_data(antd_task_t *task) int antd_scheduler_validate_data(antd_task_t *task)
{ {
UNUSED(task); UNUSED(task);
return 1; return !(difftime(time(NULL), task->access_time) > MAX_VALIDITY_INTERVAL);
//!(difftime(time(NULL), task->access_time) > MAX_VALIDITY_INTERVAL);
} }
void antd_scheduler_destroy_data(void *data) void antd_scheduler_destroy_data(void *data)
{ {