nodece opened a new pull request, #25770: URL: https://github.com/apache/pulsar/pull/25770
### Motivation When establishing a direct proxy connection fails, the outbound channel may remain open until it is cleaned up asynchronously. In some cases, this can leave stale connections or unreleased resources behind, especially during rapid reconnects or connection timeouts. This change ensures the outbound channel is explicitly closed before closing the inbound channel when connection establishment fails, improving resource cleanup consistency and reducing the risk of leaked or half-open channels. ### Modifications * Explicitly closes the outbound channel (`f.channel()`) when the connection attempt fails before closing the inbound channel. -- 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]
