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

core,stub: Document grpc performs compression nego on server #5401

Merged
merged 2 commits into from
Mar 11, 2019

Conversation

ejona86
Copy link
Member

@ejona86 ejona86 commented Feb 27, 2019

CC @AmiDavidW, as this came up in #5358

@@ -180,6 +180,9 @@ public void setMessageCompression(boolean enabled) {
* The compressor to use will be looked up in the {@link CompressorRegistry}. Default gRPC
* servers support the "gzip" compressor.
*
* <p>It is safe to call this even if the client does not support the compression format chosen.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional: you might call out that the analogous client side call (CallOptions.withCompression) does not safely negotiate.

Copy link
Contributor

@carl-mastrangelo carl-mastrangelo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ejona86
Copy link
Member Author

ejona86 commented Mar 11, 2019

Added documentation to CallOptions. There was already documentation on AbstractStub.

@ejona86 ejona86 merged commit 57e94d1 into grpc:master Mar 11, 2019
@ejona86 ejona86 deleted the compression-doc branch March 11, 2019 21:36
@lock lock bot locked as resolved and limited conversation to collaborators Jun 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants