You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by "Aias00 (via GitHub)" <gi...@apache.org> on 2026/08/03 01:11:40 UTC
[I] [BUG] No cleanup on channel close → repository leak for ungraceful disconnect [shenyu]
Aias00 opened a new issue, #6744:
URL: https://github.com/apache/shenyu/issues/6744
- severity: Medium
- files: `shenyu-protocol/shenyu-protocol-mqtt/src/main/java/org/apache/shenyu/protocol/mqtt/MqttTransportHandler.java:42-44`; `MqttTransportServerInitializer.java:44`
- description: `MqttTransportServerInitializer` registers `handler` as a `GenericFutureListener` on `ch.closeFuture()`, but `MqttTransportHandler.operationComplete(Future)` has an empty body. Cleanup of `ChannelRepository`/`SubscribeRepository` only happens via explicit `DISCONNECT`. A client that drops TCP without DISCONNECT leaves its `Channel` and subscriptions registered forever.
- impact: Channel and subscription maps grow unbounded across disconnecting clients; future `send()`s try to write to closed channels.
- suggested_fix: In `operationComplete`, remove the closing channel from `ChannelRepository` and `SubscribeRepository`.
- confidence: High
- related_existing: none
---
_Identified during the 2026-08-02 deep re-scan; full list in [`docs/scan2-2026-08-02/06-medium-tiers.md`](docs/scan2-2026-08-02/06-medium-tiers.md)._
--
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: notifications-unsubscribe@shenyu.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [BUG] No cleanup on channel close → repository leak for ungraceful disconnect [shenyu]
Posted by "Aias00 (via GitHub)" <gi...@apache.org>.
Aias00 closed issue #6744: [BUG] No cleanup on channel close → repository leak for ungraceful disconnect
URL: https://github.com/apache/shenyu/issues/6744
--
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: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [BUG] No cleanup on channel close → repository leak for ungraceful disconnect [shenyu]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #6744:
URL: https://github.com/apache/shenyu/issues/6744#issuecomment-5161311762
👋 Hello @yuluo-yx
A new issue has been opened by @Aias00:
- **Title**: [BUG] No cleanup on channel close → repository leak for ungraceful disconnect
- **Link**: https://github.com/apache/shenyu/issues/6744
Please review when you have time. Thank you! 🙏
--
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: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [BUG] No cleanup on channel close → repository leak for ungraceful disconnect [shenyu]
Posted by "wy471x (via GitHub)" <gi...@apache.org>.
wy471x commented on issue #6744:
URL: https://github.com/apache/shenyu/issues/6744#issuecomment-5294150099
/assign
--
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: notifications-unsubscribe@shenyu.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org