Aias00 opened a new issue, #6733: URL: https://github.com/apache/shenyu/issues/6733
- severity: Medium - files: `shenyu-plugin/shenyu-plugin-proxy/shenyu-plugin-divide/src/main/java/org/apache/shenyu/plugin/divide/DividePlugin.java:133-135` - description: For `loadBalance=p2c`, `responseTrigger` (which calls `upstream.getInflight().decrementAndGet()`) is wired only via `.doOnSuccess(...).doOnError(...)`. There is no `.doOnCancel(...)`/`.doFinally(...)`. When the downstream subscriber cancels before terminal signal (client disconnect, timeout cancellation), neither `onSuccess` nor `onError` fires, so the decrement never runs. `inflight` ratchets upward forever. - impact: Persistent inflight inflation on client disconnects; affected upstream is increasingly starved by p2c. - suggested_fix: Replace `.doOnSuccess(...).doOnError(...)` with `.doFinally(sig -> ...)` (or add `.doOnCancel(...)`). - confidence: Medium - related_existing: none — #6544/FUNC-D2 is the `beginTime` race, not the p2c inflight leak. --- _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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
