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 authored and Bobgy committed Sep 4, 2020
1 parent f39a98d commit 62bed1b
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 @@ -147,7 +147,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 62bed1b

Please sign in to comment.