From 271d55942c943c3813638a19a7194ca062ba6fe3 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Thu, 30 Oct 2014 12:19:07 +0800 Subject: [PATCH] use a smaller timeout --- src/udprelay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/udprelay.c b/src/udprelay.c index f44c0d30..4b176b30 100644 --- a/src/udprelay.c +++ b/src/udprelay.c @@ -319,7 +319,7 @@ struct remote_ctx *new_remote(int fd, struct server_ctx *server_ctx) ctx->fd = fd; ctx->server_ctx = server_ctx; ev_io_init(&ctx->io, remote_recv_cb, fd, EV_READ); - ev_timer_init(&ctx->watcher, remote_timeout_cb, server_ctx->timeout, server_ctx->timeout * 5); + ev_timer_init(&ctx->watcher, remote_timeout_cb, server_ctx->timeout, server_ctx->timeout); return ctx; }