Skip to content

Commit

Permalink
Revert HttpClient
Browse files Browse the repository at this point in the history
  • Loading branch information
stsypanov committed Mar 15, 2021
1 parent ff25cc4 commit af4fcce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/java.base/share/classes/sun/net/www/http/HttpClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,8 @@ protected boolean available() {
try {
old = serverSocket.getSoTimeout();
serverSocket.setSoTimeout(1);
InputStream tmpbuf = serverSocket.getInputStream();
BufferedInputStream tmpbuf =
new BufferedInputStream(serverSocket.getInputStream());
int r = tmpbuf.read();
if (r == -1) {
logFinest("HttpClient.available(): " +
Expand Down

0 comments on commit af4fcce

Please sign in to comment.