Reuse client option to configure server recv limit #654
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Tried using the
backend_max_call_recv_msg_size
arg to send 5Mb message from browser front-end -> grpcwebproxy -> backend service. Proxy was throwing error (below). It looked like the server was still using the GRPC default message size of 4Mb.Changes
backend_max_call_recv_msg_size
to proxy serverVerification
Setup
Steps to reproduce
Run proxy, built from source, with command
$GOPATH/bin/grpcwebproxy --backend_max_call_recv_msg_size=5242880 --backend_addr=localhost:50053 --server_http_debug_port=8443 --run_tls_server=false --use_websockets --allow_all_origins
Call grpcClient.upload w/ 5Mb request; received error:
ERRO[0026] finished streaming call with code Internal error="rpc error: code = Internal desc = failed proxying s2c: rpc error: code = ResourceExhausted desc = grpc: received message larger than max (5242880 vs. 4194304)" grpc.code=Internal grpc.method=Upload grpc.service=FooService ...