0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00

fix timeout

This commit is contained in:
Zack Scholl 2018-10-09 21:16:26 -07:00
parent 42344a4c6e
commit 91e065529b

View file

@ -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}
}