From 43a06e52de6e63871a1f9cb6d38ad2c4546b1397 Mon Sep 17 00:00:00 2001 From: v2ray Date: Mon, 4 Jan 2016 22:57:17 +0100 Subject: [PATCH] init timeout value --- common/net/timed_io.go | 1 + 1 file changed, 1 insertion(+) diff --git a/common/net/timed_io.go b/common/net/timed_io.go index 4132bd7e8..63c310e6c 100644 --- a/common/net/timed_io.go +++ b/common/net/timed_io.go @@ -19,6 +19,7 @@ type TimeOutReader struct { func NewTimeOutReader(timeout int, connection net.Conn) *TimeOutReader { reader := &TimeOutReader{ connection: connection, + timeout: -100, } reader.SetTimeOut(timeout) return reader