mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-30 13:13:44 +00:00
Set the minimum resolv timeout to be one second
This commit is contained in:
@@ -448,6 +448,7 @@ reset_timer()
|
||||
return;
|
||||
}
|
||||
float repeat = tv->tv_sec + tv->tv_usec / 1000000. + 1e-9;
|
||||
repeat = repeat < 1.f ? 1.f : repeat;
|
||||
ev_timer_set(&default_ctx.tw, repeat, repeat);
|
||||
ev_timer_again(default_loop, &default_ctx.tw);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user