8282017: sun/net/www/protocol/https/HttpsURLConnection/B6216082.java fails with "SocketException: Unexpected end of file from server"

Reviewed-by: dfuchs
This commit is contained in:
Mahendra Chhipa 2022-02-17 17:45:06 +00:00 committed by Daniel Fuchs
parent a6f8a386ef
commit cd9a3cf05b
2 changed files with 3 additions and 5 deletions

View File

@ -597,8 +597,6 @@ java/net/MulticastSocket/SetGetNetworkInterfaceTest.java 8219083 windows-
java/net/ServerSocket/AcceptInheritHandle.java 8211854 aix-ppc64
sun/net/www/protocol/https/HttpsURLConnection/B6216082.java 8282017 generic-all
############################################################################
# jdk_nio

View File

@ -261,9 +261,9 @@ public class TunnelProxy {
boolean res;
try {
InputStream is = new BufferedInputStream (new NioInputStream (chan));
String requestline = readLine (is);
HttpHeaderParser mhead = new HttpHeaderParser (is);
String[] req = requestline.split (" ");
HttpHeaderParser mHead = new HttpHeaderParser (is);
String requestLine = mHead.getRequestDetails();
String[] req = requestLine.split (" ");
if (req.length < 2) {
/* invalid request line */
return false;