Skip to content
Discussion options

You must be logged in to vote

The Netty example is the generic "log and drop the connection" handler. Dubbo's version hands the exception to its own handler chain instead and keeps the connection open. In practice that means three things:

  1. Dubbo wraps the Netty channel. NettyChannel.getOrAddChannel(ch, url, handler) returns the cached Dubbo Channel for this Netty channel, the same object the rest of Dubbo uses for send(), attributes and heartbeat state. Every Dubbo handler works with that type, not with ChannelHandlerContext.
  2. handler.caught(channel, cause) lets the upper layers react to the error. The chain runs MultiMessageHandler, HeartbeatHandler, the dispatcher (AllChannelHandler) and HeaderExchangeHandler. In Hea…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LI123456mo
Comment options

Answer selected by LI123456mo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants