Skip to content

Commit

Permalink
Merge pull request moby#48242 from thaJeztah/buildkit_fix_grpc_contro…
Browse files Browse the repository at this point in the history
…l_api_sizes

api/server/router/grpc: NewRouter: set correct MaxRecvMsgSize, MaxSendMsgSize
  • Loading branch information
thaJeztah authored Jul 26, 2024
2 parents 08d7b56 + cdbfae1 commit 50c3d19
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/server/router/grpc/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"os"
"strings"

"github.com/containerd/containerd/defaults"
"github.com/containerd/log"
"github.com/docker/docker/api/server/router"
"github.com/moby/buildkit/util/grpcerrors"
Expand All @@ -32,6 +33,8 @@ func NewRouter(backends ...Backend) router.Router {
grpc.StatsHandler(tracing.ServerStatsHandler(otelgrpc.WithTracerProvider(otel.GetTracerProvider()))),
grpc.ChainUnaryInterceptor(unaryInterceptor, grpcerrors.UnaryServerInterceptor),
grpc.StreamInterceptor(grpcerrors.StreamServerInterceptor),
grpc.MaxRecvMsgSize(defaults.DefaultMaxRecvMsgSize),
grpc.MaxSendMsgSize(defaults.DefaultMaxSendMsgSize),
}

r := &grpcRouter{
Expand Down

0 comments on commit 50c3d19

Please sign in to comment.