From 11a0d8db60fc200c7e6a0dd77fb4a02f8a8fe870 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Mon, 2 Jul 2018 12:51:20 +0800 Subject: [PATCH] Reset timer in server_stream as well --- src/local.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/local.c b/src/local.c index 94dcef39..8cdd79e5 100644 --- a/src/local.c +++ b/src/local.c @@ -615,6 +615,8 @@ server_stream(EV_P_ ev_io *w, buffer_t *buf) return; } + ev_timer_again(EV_A_ & remote->recv_ctx->watcher); + // insert shadowsocks header if (!remote->direct) { #ifdef __ANDROID__