-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
KeepAliveManager is not apply to ConnectionHandler in netty transport #2828
Milestone
Comments
thanks for the notice. |
dapengzhang0
added a commit
to dapengzhang0/grpc-java
that referenced
this issue
Mar 16, 2017
resolves grpc#2828 - moved construction of keepAliveManager right after channel is constructed. - pass keepAliveManager into NettyClientHandler by a setter
ejona86
added a commit
to ejona86/grpc-java
that referenced
this issue
Mar 31, 2017
d116cc9 fixed the NPE, but the initialization of the manager happened _after_ newHandler() was called, so a null manager was passed to the handler. Fixes grpc#2828
ejona86
added a commit
that referenced
this issue
Apr 1, 2017
d116cc9 fixed the NPE, but the initialization of the manager happened _after_ newHandler() was called, so a null manager was passed to the handler. Fixes #2828
Hi there! Any plan to release 1.3.x? KeepAlive support is a important feature for us :) |
@bobwenx, 1.3.0 is now available. It's not yet showing up on search.maven.org, but it is available for download. We've not yet made the release announcement, but it's in the works. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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 theKeepAlive
feature still not work functionally.Debugging the code(io.grpc.netty.NettyClientTransport#start):
So, we known the
KeepAliveManager
only make effective inio.grpc.netty.NettyClientHandler
instance. But the code showing the creation ofio.grpc.netty.NettyClientHandler
always receive anull
keepAliveManager.Probably because the
keepAliveManager
field is assigning in the end ofio.grpc.netty.NettyClientTransport#start()
call.Associated commit: #2729: the commit resolve the problem of NPE(#2726)
cc @lukaszx0 @ejona86
The text was updated successfully, but these errors were encountered: