Skip to content

Commit

Permalink
Longer timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
neekolas committed Mar 21, 2024
1 parent 60bd81b commit 1ab1e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (s *Server) startGRPC() error {
var err error

grpcListener, err := net.Listen("tcp", addrString(s.GRPCAddress, s.GRPCPort))
s.grpcListener = &proxyproto.Listener{Listener: grpcListener}
s.grpcListener = &proxyproto.Listener{Listener: grpcListener, ReadHeaderTimeout: 10 * time.Second}
if err != nil {
return errors.Wrap(err, "creating grpc listener")
}
Expand Down

0 comments on commit 1ab1e4f

Please sign in to comment.