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

Explicit ALTS buffer management to avoid too many ShortBufferException #7049

Merged
merged 1 commit into from
May 20, 2020

Conversation

veblush
Copy link
Contributor

@veblush veblush commented May 19, 2020

To avoid having too many ShortBufferException thrown in ALTS code path on Java 8, we came up with this workaround creating new managed buffer, filling it, and passing it to underlying Conscrypt not to hit the code path throwing the exception. This might look to introduce another inefficiency but it's more like making it explicit because Conscrypt will do for non-managed buffer which gRPC uses.

Fix: #6761

@veblush
Copy link
Contributor Author

veblush commented May 19, 2020

Reviewers: jiangtaoli2016, beschmi

@jiangtaoli2016
Copy link
Contributor

@beschmi

@ejona86 ejona86 merged commit c7e8990 into grpc:master May 20, 2020
@ejona86 ejona86 added the TODO:backport PR needs to be backported. Removed after backport complete label May 20, 2020
@ejona86 ejona86 removed the TODO:backport PR needs to be backported. Removed after backport complete label May 27, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 12, 2021
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.

Profiling for crypter's decryption for ALTS Channel.
3 participants