From de46db3ea46c455280a6248cefcfbb705edaa74d Mon Sep 17 00:00:00 2001 From: Vlad Bologa Date: Thu, 12 Oct 2023 14:38:25 +0200 Subject: [PATCH] ROX-20122: set gRPC max concurrent streams to 100 --- api/grpc/grpc.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/grpc/grpc.go b/api/grpc/grpc.go index 48d7b54ab..4b4c4b630 100644 --- a/api/grpc/grpc.go +++ b/api/grpc/grpc.go @@ -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) }