Skip to content

Commit

Permalink
fix: set repeat time for check web connection timeout
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
  • Loading branch information
zhaojh329 committed Sep 15, 2021
1 parent a0da68e commit 28931cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web.c
Expand Up @@ -122,7 +122,7 @@ static void on_connected(int sock, void *arg)
ev_io_init(&ctx->iow, on_net_write, sock, EV_WRITE);
ev_io_start(loop, &ctx->iow);

ev_timer_init(&ctx->tmr, on_timer_cb, 1, 0);
ev_timer_init(&ctx->tmr, on_timer_cb, 3, 3);
ev_timer_start(loop, &ctx->tmr);

ctx->sock = sock;
Expand Down

0 comments on commit 28931cf

Please sign in to comment.