You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] p2c inflight counter leaks on downstream cancellation (no doOnCancel/doFinally) #6733
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(...)).
Activity
github-actions commentedon Aug 3, 2026
👋 Hello @yuluo-yx
A new issue has been opened by @Aias00:
Please review when you have time. Thank you! 🙏