From 91e065529b0f1a17bcfddc4b5be5478a1ad4447d Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Tue, 9 Oct 2018 21:16:26 -0700 Subject: [PATCH] fix timeout --- src/comm/comm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/comm/comm.go b/src/comm/comm.go index 4a327e4a..44c0c6e9 100644 --- a/src/comm/comm.go +++ b/src/comm/comm.go @@ -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} }