From 79e7f115894ba61d1528a69dea0c04f798f3860d Mon Sep 17 00:00:00 2001 From: DevMiner Date: Thu, 21 Sep 2023 19:11:17 +0200 Subject: [PATCH] fix: timeouts during login --- lib/conn/conn.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/conn/conn.go b/lib/conn/conn.go index 43d7e7b6..016c2a06 100644 --- a/lib/conn/conn.go +++ b/lib/conn/conn.go @@ -230,8 +230,8 @@ func forwardTCP(source, destination net.Conn, isServerToClient bool, req int) { for { // update read and write timeout - source.SetReadDeadline(time.Now().Add(10 * time.Second)) - destination.SetWriteDeadline(time.Now().Add(10 * time.Second)) + source.SetReadDeadline(time.Now().Add(60 * time.Second)) + destination.SetWriteDeadline(time.Now().Add(60 * time.Second)) // read data from source dataLen, err := source.Read(data)