fix timeout
This commit is contained in:
parent
42344a4c6e
commit
91e065529b
|
|
@ -18,7 +18,7 @@ type Comm struct {
|
|||
func New(c net.Conn) Comm {
|
||||
c.SetReadDeadline(time.Now().Add(3 * time.Hour))
|
||||
c.SetDeadline(time.Now().Add(3 * time.Hour))
|
||||
c.SetWriteDeadline(time.Now().Add(5 * time.Second))
|
||||
c.SetWriteDeadline(time.Now().Add(3 * time.Hour))
|
||||
return Comm{c}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue