Skip to content

Commit

Permalink
fix: set read deadline for connections
Browse files Browse the repository at this point in the history
  • Loading branch information
damonto committed Mar 27, 2024
1 parent ccfcccf commit eab5f18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/rlpa/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func (s *server) Listen(address string) error {

conn.SetKeepAlive(true)
conn.SetKeepAlivePeriod(30 * time.Second)
conn.SetReadDeadline(time.Now().Add(5 * time.Minute))
go s.handleConn(conn)
}
}
Expand Down

0 comments on commit eab5f18

Please sign in to comment.