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

android: Add UdsChannelBuilder #8418

Merged
merged 1 commit into from Mar 10, 2023
Merged

android: Add UdsChannelBuilder #8418

merged 1 commit into from Mar 10, 2023

Conversation

ejona86
Copy link
Member

@ejona86 ejona86 commented Aug 17, 2021

Allows using Android's LocalSocket via a Socket adapter. Such an adapter
isn't generally 100% safe, since some methods may not have any effect,
but we know what methods are called by gRPC's okhttp transport and can
update the adapter or the transport as appropriate.


This code is actually dates back to March and has already been used by an app for a while. This is merely the open sourcing of the code that I'd promised @kenk42292. The reflection in UDSChannelBuilder is new (previously it referenced OkHttpChannelBuilder directly) and I added a few comments. I'm disappointed we need to use Netty in the interop test, but TLS isn't really an option because Conscrypt is incompatible with non-platform Socket implementations.

@dapengzhang0, we may want to discuss if someone else should review.

@ejona86 ejona86 requested a review from temawi December 6, 2022 18:37
@ejona86 ejona86 changed the title android: Add UDSChannelBuilder android: Add UdsChannelBuilder Dec 6, 2022
Copy link
Contributor

@temawi temawi left a comment

Choose a reason for hiding this comment

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

Looks good, just left a couple nits about comments.

Sorry for the delay in the review!

Allows using Android's LocalSocket via a Socket adapter. Such an adapter
isn't generally 100% safe, since some methods may not have any effect,
but we know what methods are called by gRPC's okhttp transport and can
update the adapter or the transport as appropriate.
@ejona86 ejona86 merged commit 915c706 into grpc:master Mar 10, 2023
@ejona86 ejona86 deleted the android-uds branch March 10, 2023 23:28
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 9, 2023
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

4 participants