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: lucy
Backport-of: cd9a3cf05b2c200709103e2e8596414a62a1c441
  • Loading branch information
Amos Shi committed Apr 25, 2024
1 parent 1ea1852 commit decacb8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,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 decacb8

@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.