From 248fdcb610b0529496cede280604941ec146b36e Mon Sep 17 00:00:00 2001 From: Max Lv Date: Fri, 23 Sep 2016 11:51:42 +0800 Subject: [PATCH] Fix #841 --- src/local.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/local.c b/src/local.c index 4459fe31..859d4aec 100644 --- a/src/local.c +++ b/src/local.c @@ -922,7 +922,7 @@ new_remote(int fd, int timeout) ev_timer_init(&remote->send_ctx->watcher, remote_timeout_cb, min(MAX_CONNECT_TIMEOUT, timeout), 0); ev_timer_init(&remote->recv_ctx->watcher, remote_timeout_cb, - min(MAX_CONNECT_TIMEOUT, timeout), timeout); + timeout, timeout); balloc(remote->buf, BUF_SIZE);