Repository navigation
[Q/A][Java SDK (Component)] xxx The exceptionCought #16062
Pre-check
Apache Dubbo ComponentJava SDK (apache/dubbo) DetailsWhat is the difference in using this @OverRide and using this (I found it while walking through netty ) @OverRide Code of Conduct
|
Replies: 1 comment 1 reply
|
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:
Dubbo deliberately does not call
If this solves it, please mark it as the answer so others with the same problem can find it. |
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:
NettyChannel.getOrAddChannel(ch, url, handler)returns the cached DubboChannelfor this Netty channel, the same object the rest of Dubbo uses forsend(), attributes and heartbeat state. Every Dubbo handler works with that type, not withChannelHandlerContext.handler.caught(channel, cause)lets the upper layers react to the error. The chain runs MultiMessageHandler, HeartbeatHandler, the dispatcher (AllChannelHandler) and HeaderExchangeHandler. In Hea…