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

Support zero-byte read in gRPC client #1985

Merged
merged 9 commits into from
Jan 11, 2023

Conversation

JamesNK
Copy link
Member

@JamesNK JamesNK commented Dec 11, 2022

Avoid renting and using a buffer until a response is available using a zero-byte read of the response.

Copy link
Contributor

@mgravell mgravell left a comment

Choose a reason for hiding this comment

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

(minor comments added)

@JamesNK JamesNK force-pushed the jamesnk/zero-byte-reads branch from db96ea3 to c3087ca Compare January 6, 2023 02:01
Copy link
Contributor

@amcasey amcasey left a comment

Choose a reason for hiding this comment

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

Seems sensible. To confirm my understanding of the motivation, this won't reduce renting of buffers but it will defer renting until they're actually needed, reducing contention?

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@JamesNK JamesNK merged commit 96ea383 into grpc:master Jan 11, 2023
@JamesNK JamesNK deleted the jamesnk/zero-byte-reads branch January 11, 2023 02:35
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.

None yet

6 participants