Hsnmohd opened a new pull request, #946: URL: https://github.com/apache/httpcomponents-client/pull/946
**Refused CONNECT pools a plain proxy connection under the TLS tunnel route** When the proxy refuses CONNECT, `AsyncConnectExec` completes without touching the runtime's reuse state, so `releaseEndpoint()` pools the connection with whatever an earlier exchange on that endpoint left behind: if the tunnel had to be re-established within the same execution (the origin answered `401` with `Connection: close`) and the proxy then returns `403`, the plain connection to the proxy goes back to the pool under the secure tunnelled route, and the next `https://` request on that route is written to the proxy in cleartext, `Authorization` and cookies included (reproduced with `HttpAsyncClients`, a TLS origin and a socket-level fake proxy). The refused connection is now marked non-reusable, matching `ConnectExec`, which discards the endpoint in the same case. -- 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]
