Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TransparentHandlerWithOptions function #73

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hashi-derek
Copy link

Prior to this function being added, it was not possible to set gRPC CallOptions on the call to grpc.NewClientStream(...) performed by the TransparentHandler.

Notably, the grpc.MaxRecvMsgSize() would not be configured and would result in errors if the payload size was exceeded, despite the fact that the proxy's server had the value correctly configured.

The introduction of this TransparentHandlerWithOptions(...) function allows for various settings to be configured on the handler and passed through to the grpc.NewClientStream(...) call.

Prior to this function being added, it was not possible to set gRPC CallOptions
on the call to `grpc.NewClientStream(...)` performed by the TransparentHandler.
Notably, the `grpc.MaxRecvMsgSize()` would not be configured and would result
in closed streams if the payload size was exceeded, despite the fact that the
proxy's server had the value correctly configured.

The introduction of this `TransparentHandlerWithOptions(...)` function allows
for various settings to be configured on the handler and passed through to the
`grpc.NewClientStream(...)` call.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant