From f45103cccbffc4d667fd7a074828ce618293bb3c Mon Sep 17 00:00:00 2001 From: Max Lv Date: Wed, 3 Apr 2013 10:55:59 +0800 Subject: [PATCH] update timer interval --- src/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.c b/src/server.c index 4a13f9d8..2c19e729 100644 --- a/src/server.c +++ b/src/server.c @@ -559,7 +559,7 @@ struct server* new_server(int fd) { server->fd = fd; ev_io_init(&server->recv_ctx->io, server_recv_cb, fd, EV_READ); ev_io_init(&server->send_ctx->io, server_send_cb, fd, EV_WRITE); - ev_timer_init(&server->recv_ctx->watcher, server_resolve_cb, 0.5, 1.0); + ev_timer_init(&server->recv_ctx->watcher, server_resolve_cb, 0.2, 0.5); server->recv_ctx->server = server; server->recv_ctx->connected = 0; server->send_ctx->server = server;