mirror of
https://github.com/renorris/openfsd
synced 2026-04-17 15:55:31 +08:00
Revert "add client timeout via net/Conn SetDeadline"
This reverts commit 8affb6210e.
This commit is contained in:
@@ -108,8 +108,6 @@ func (s *Server) eventLoop(client *Client) {
|
||||
go client.senderWorker()
|
||||
|
||||
for {
|
||||
// Set deadline and attempt to read
|
||||
client.conn.SetReadDeadline(getTimeBySecondsInFuture(s.cfg.ConnectionTimeoutSeconds))
|
||||
if !client.scanner.Scan() {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user