Skip to content

Commit

Permalink
fix(backend): add MaxCallRecvMsgSize(math.MaxInt32) to proxy server (
Browse files Browse the repository at this point in the history
  • Loading branch information
zsaladin committed Sep 2, 2020
1 parent 32c9c2a commit cd9c9ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/apiserver/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func startHttpProxy(resourceManager *resource.ResourceManager) {

func registerHttpHandlerFromEndpoint(handler RegisterHttpHandlerFromEndpoint, serviceName string, ctx context.Context, mux *runtime.ServeMux) {
endpoint := "localhost" + *rpcPortFlag
opts := []grpc.DialOption{grpc.WithInsecure()}
opts := []grpc.DialOption{grpc.WithInsecure(), grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(math.MaxInt32))}

if err := handler(ctx, mux, endpoint, opts); err != nil {
glog.Fatalf("Failed to register %v handler: %v", serviceName, err)
Expand Down

0 comments on commit cd9c9ff

Please sign in to comment.