mirror of
https://github.com/zhaojh329/rtty.git
synced 2026-02-27 09:53:17 +08:00
fix: set repeat time for check web connection timeout
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user