diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2021-09-06 10:24:19 +0000 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2021-09-06 12:32:38 +0200 |
commit | 2d68f8a0ec04b1f7700dce6bc0635c3bce516453 (patch) | |
tree | 65e39c982a2f0d604d10a1117a8d22b80a4b8c26 /src/rest.h | |
parent | 5558fbcf0b5be8a8f90e5b3609ae62dc7c27f84e (diff) |
#1061 add timeout to pending scheduled commands
Pending schedule commands can deny ogLive boot of clients due
to filling of pending cmd queue with commands such as "Iniciar Sesión".
For example: Using RemotePC to serve clients that do not boot into
ogLive will fill up the pending command queue with "Iniciar Sesión".
Introduce a safety timeout for pending (scheduled) commands to
avoid this situation.
Diffstat (limited to 'src/rest.h')
-rw-r--r-- | src/rest.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -2,6 +2,7 @@ #define OG_REST_H #include <ev.h> +#include <sys/time.h> extern struct ev_loop *og_loop; @@ -89,6 +90,7 @@ struct og_cmd { enum og_rest_method method; struct og_msg_params params; json_t *json; + struct timeval tv; }; const struct og_cmd *og_cmd_find(const char *client_ip); |