Skip to content

Commit

Permalink
Merge pull request #250 from TheDevMinerTV/master
Browse files Browse the repository at this point in the history
fix: timeouts during login
  • Loading branch information
gekigek99 committed Jul 25, 2024
2 parents 1530be7 + 79e7f11 commit a5a1528
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/conn/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a5a1528

Please sign in to comment.