-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
s2a,netty: S2AHandshakerServiceChannel doesn't use custom event loop. #11539
s2a,netty: S2AHandshakerServiceChannel doesn't use custom event loop. #11539
Conversation
netty/src/main/java/io/grpc/netty/InternalProtocolNegotiators.java
Outdated
Show resolved
Hide resolved
03ced73
to
a8120bb
Compare
} catch (InterruptedException e) { | ||
isDelegateTerminated = false; | ||
Thread.currentThread().interrupt(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if shutdownNow
didn't complete, you'll probably want to know about it for debugging, so I'd suggest logging a warning here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 653ac1e
s2a/src/main/java/io/grpc/s2a/handshaker/S2AProtocolNegotiatorFactory.java
Outdated
Show resolved
Hide resolved
ba02591
to
653ac1e
Compare
*/ | ||
@VisibleForTesting | ||
static class EventLoopHoldingChannel extends Channel { | ||
static class HandshakerServiceChannel extends Channel { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ChannelResource doesn't need this class any longer. Delete it. (If you want to do it in a follow-up, that's fine.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in a15421b
…grpc#11539) * S2AHandshakerServiceChannel doesn't use custom event loop. * use executorPool. * log when channel not shutdown. * use a cached threadpool. * update non-executor version.
Addresses #11113 (comment) and #11113 (comment)