init timeout value
parent
1239b1a57b
commit
43a06e52de
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue