-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
None
-
generic
-
generic
A DESCRIPTION OF THE PROBLEM :
When calling the a proxy selector with an ws/wss uri it should return the http/https proxies configured, as the ws/wss protocol does build up on a http/https connection. The current DefaultProxySelector implementation does not handle this at all, so ws/wss uris will never return a proxy.
e.g. these should return the same proxy infos, as both will connect using https
ProxySelector.getDefault().select(URI.create("https://www.openjdk.com"));
ProxySelector.getDefault().select(URI.create("wss://www.openjdk.com"));
When calling the a proxy selector with an ws/wss uri it should return the http/https proxies configured, as the ws/wss protocol does build up on a http/https connection. The current DefaultProxySelector implementation does not handle this at all, so ws/wss uris will never return a proxy.
e.g. these should return the same proxy infos, as both will connect using https
ProxySelector.getDefault().select(URI.create("https://www.openjdk.com"));
ProxySelector.getDefault().select(URI.create("wss://www.openjdk.com"));