mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 10:08:15 -05:00
init timeout value
This commit is contained in:
parent
1239b1a57b
commit
43a06e52de
@ -19,6 +19,7 @@ type TimeOutReader struct {
|
|||||||
func NewTimeOutReader(timeout int, connection net.Conn) *TimeOutReader {
|
func NewTimeOutReader(timeout int, connection net.Conn) *TimeOutReader {
|
||||||
reader := &TimeOutReader{
|
reader := &TimeOutReader{
|
||||||
connection: connection,
|
connection: connection,
|
||||||
|
timeout: -100,
|
||||||
}
|
}
|
||||||
reader.SetTimeOut(timeout)
|
reader.SetTimeOut(timeout)
|
||||||
return reader
|
return reader
|
||||||
|
Loading…
Reference in New Issue
Block a user