[Bug]: Timeout if host is only reacheable via a proxy and client certificates settings is set #34873
Labels
open-to-a-pull-request
The feature request looks good, we are open to reviewing a PR
Version
1.50.1
Steps to reproduce
Expected behavior
Playwright should be able to reach a domain thorugh the proxy, regardless of any client certificates configuration. Particularly if they are unrelated to that domain.
Actual behavior
If any client certificates configuration is used. Playwright will fail to open or wrongly infer the protocol for any domain which is only available through a proxy. There are at least 3 scenarios to consider:
playwright/packages/playwright-core/src/server/socksClientCertificatesInterceptor.ts
Line 42 in bb8e914
Additional context
The correct behavir would be for ALPNCache to use both the proxy agent and the already created secure context to establish the TLS connection. I think @mxschmitt has a lot of context as he has been adding client certificates and later proxy support (thanks a lot).
I can fix this if this solution makes sense.
Environment
The text was updated successfully, but these errors were encountered: