Skip to content

Commit

Permalink
8282017: sun/net/www/protocol/https/HttpsURLConnection/B6216082.java …
Browse files Browse the repository at this point in the history
…fails with "SocketException: Unexpected end of file from server"

Reviewed-by: dfuchs
  • Loading branch information
mahendrachhipa authored and dfuch committed Feb 17, 2022
1 parent a6f8a38 commit cd9a3cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions test/jdk/ProblemList.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,9 @@ private boolean read (SocketChannel chan, SelectionKey key) {
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;
Expand Down

1 comment on commit cd9a3cf

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.