Skip to content

Commit

Permalink
ROX-20122: set gRPC max concurrent streams to 100
Browse files Browse the repository at this point in the history
  • Loading branch information
vladbologa committed Oct 13, 2023
1 parent c017a55 commit de46db3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion api/grpc/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ func (a *apiImpl) connectToLocalEndpoint() (*grpc.ClientConn, error) {
}

func (a *apiImpl) Start() {
grpcServer := grpc.NewServer(grpc.ChainUnaryInterceptor(a.config.UnaryInterceptors...))
grpcServer := grpc.NewServer(
grpc.ChainUnaryInterceptor(a.config.UnaryInterceptors...),
grpc.MaxConcurrentStreams(100),
)
for _, serv := range a.apiServices {
serv.RegisterServiceServer(grpcServer)
}
Expand Down

0 comments on commit de46db3

Please sign in to comment.