Skip to content

ALTS: release handshaker service channel if it is not used. #4755

@jiangtaoli2016

Description

@jiangtaoli2016

In current ALTS java implementation, we create a shared ALTS thread and a gRPC channel to the handshaker service when we build ALTS channel. The channel to the handshaker service will already be there until application exit. It is more efficient if we can ref count the channel and free this gRPC channel if nobody is using it.

Note that ALTS C++ code does the same resource management: creates a thread and a channel to the handshaker service and only destroys them during grpc shutdown. https://github.com/grpc/grpc/blob/master/src/core/tsi/alts_transport_security.cc#L53

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions