JDK-8280099 : sun/net/www/protocol/http/TunnelThroughProxy.java fails with timeout
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 18
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2022-01-17
  • Updated: 2022-01-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
JDK18 ATR IPv6 only environment

overall the test timeouts, but the tunnel proxy failed with an IOException while processing request

----------System.out:(8/456)----------
Setting https.proxyHost='0:0:0:0:0:0:0:1'
Setting https.proxyPort='36397'
Proxy: Processing request from 'Socket[addr=/0:0:0:0:0:0:0:1,port=40826,localport=36397]'
Setting https.proxyHost='0:0:0:0:0:0:0:1'
Setting https.proxyPort='45355'
Proxy: Processing request from 'Socket[addr=/0:0:0:0:0:0:0:1,port=55904,localport=45355]'
Proxy Failed: java.io.IOException: Proxy recieved a request: CONNECT [0:0:0:0:0:0:0:1]:46329 HTTP/1.1
Timeout refired 120 times
----------System.err:(4/278)----------
java.io.IOException: Proxy recieved a request: CONNECT [0:0:0:0:0:0:0:1]:46329 HTTP/1.1
	at ProxyTunnelServer.retrieveConnectInfo(ProxyTunnelServer.java:309)
	at ProxyTunnelServer.processRequests(ProxyTunnelServer.java:153)
	at ProxyTunnelServer.run(ProxyTunnelServer.java:109)
----------rerun:(31/2110)*----------
Comments
The issue seems to be in the way that sun/net/www/protocol/http/ProxyServerTunnel.java extracts the destination address from the CONNECT line. There are several instances of ProxyServerTunnel.java - they may all need to be checked and possibly fixed: open/test/jdk/sun/net/www/protocol/https/HttpsURLConnection/ProxyTunnelServer.java open/test/jdk/sun/net/www/protocol/https/HttpsClient/ProxyTunnelServer.java open/test/jdk/sun/net/www/protocol/http/ProxyTunnelServer.java open/test/jdk/sun/security/ssl/InputRecord/ProxyTunnelServer.java
18-01-2022