Don't set keep alive period

This commit is contained in:
Sketch
2023-11-05 17:04:57 -05:00
parent 90f706c0b6
commit 10ab727bbb
3 changed files with 1 additions and 19 deletions

View File

@@ -11,7 +11,6 @@ import (
"io"
"net"
"os"
"time"
"wwfc/common"
"wwfc/logging"
)
@@ -90,11 +89,6 @@ func handleRequest(conn net.Conn) {
logging.Notice(ModuleName, "Unable to set keepalive", err.Error())
}
err = conn.(*net.TCPConn).SetKeepAlivePeriod(time.Hour * 1000)
if err != nil {
logging.Notice(ModuleName, "Unable to set keepalive", err.Error())
}
logging.Notice(ModuleName, "Connection established from", aurora.BrightCyan(conn.RemoteAddr()))
// Here we go into the listening loop