kssumin commented on PR #7674:
URL: https://github.com/apache/incubator-seata/pull/7674#issuecomment-3531187922
> @kssumin
>
> Where did you handle the `channelInactive` event?
The `channelInactive` event is handled in the **existing**
`handleDisconnect()` method.
**Location:** `AbstractNettyRemotingServer.java:227-233`
```java
// Added inside existing handleDisconnect() method
if (rpcContext.getClientRole() == NettyPoolKey.TransactionRole.TMROLE
&& tmDisconnectHandler != null) {
tmDisconnectHandler.handleTMDisconnect(rpcContext);
}
```
**Flow:**
- Netty fires `channelInactive` → calls existing `handleDisconnect()` → we
added TM check → calls our handler
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]