Skip to content

KeepAliveManager is not apply to ConnectionHandler in netty transport #2828

@bobwenx

Description

@bobwenx

What version of gRPC are you using?

GRPC 1.2.0

What JVM are you using (java -version)?

1.8.0_112

What did you do?

I am try to make KeepAlive work with netty transport just now(grpc-java 1.2.0), and after some function test, i think the KeepAlive feature still not work functionally.

Debugging the code(io.grpc.netty.NettyClientTransport#start):
image

So, we known the KeepAliveManager only make effective in io.grpc.netty.NettyClientHandler instance. But the code showing the creation of io.grpc.netty.NettyClientHandler always receive a null keepAliveManager.

image

Probably because the keepAliveManager field is assigning in the end of io.grpc.netty.NettyClientTransport#start() call.

Associated commit: #2729: the commit resolve the problem of NPE(#2726)

cc @lukaszx0 @ejona86

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions