diff --git a/client/connection.go b/client/connection.go index 5afe9f4..4b04dd5 100644 --- a/client/connection.go +++ b/client/connection.go @@ -140,6 +140,7 @@ func (conn *Conn) Connect(host string, pass ...string) os.Error { conn.io = bufio.NewReadWriter( bufio.NewReader(conn.sock), bufio.NewWriter(conn.sock)) + conn.sock.SetTimeout(300000000000) // 5 minutes go conn.send() go conn.recv()