瀏覽代碼

init timeout value

v2ray 9 年之前
父節點
當前提交
43a06e52de
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      common/net/timed_io.go

+ 1 - 0
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