Skip to content

Commit ad4e442

Browse files
committed
Minor: Waiting for the active connection from the client one second
1 parent 9c00906 commit ad4e442

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/util/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ func (s *server) handleConn(cliConn *net.TCPConn, clientID uint64, transferPort
138138
_ = s.TransferToTCP(intranetConn, cliConn, 0)
139139
return
140140
}
141-
case <-time.After(30 * time.Second):
141+
case <-time.After(1 * time.Second):
142142
log.Printf("Currently, We don't have any active connection from the intranet server[Client ID: %d - Port: %d].",
143143
clientID, transferPort)
144144
_ = cliConn.Close()

0 commit comments

Comments
 (0)