Skip to content

Commit af529be

Browse files
committedAug 3, 2022
8285836: sun/net/www/http/KeepAliveCache/KeepAliveProperty.java failed with "RuntimeException: Failed in server"
Reviewed-by: dfuchs, jpai
1 parent b7d2bde commit af529be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎test/jdk/sun/net/www/http/KeepAliveCache/KeepAliveProperty.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
public class KeepAliveProperty {
4141

4242
static volatile boolean pass = false;
43+
static Logger logger = Logger.getLogger("sun.net.www.protocol.http.HttpURLConnection");
4344

4445
static class Server extends Thread {
4546
final ServerSocket server;
@@ -138,7 +139,6 @@ static String fetch(URL url) throws Exception {
138139

139140
public static void main(String args[]) throws Exception {
140141
// exercise the logging code
141-
Logger logger = Logger.getLogger("sun.net.www.protocol.http.HttpURLConnection");
142142
logger.setLevel(Level.FINEST);
143143
ConsoleHandler h = new ConsoleHandler();
144144
h.setLevel(Level.FINEST);
@@ -171,6 +171,7 @@ public static void main(String args[]) throws Exception {
171171
if (!expectClose)
172172
throw e;
173173
}
174+
s.join();
174175

175176
if (!pass)
176177
throw new RuntimeException("Failed in server");

5 commit comments

Comments
 (5)

openjdk-notifier[bot] commented on Aug 3, 2022

@openjdk-notifier[bot]

GoeLin commented on Sep 27, 2022

@GoeLin
Member

/backport jdk17u-dev

openjdk[bot] commented on Sep 27, 2022

@openjdk[bot]

@GoeLin the backport was successfully created on the branch GoeLin-backport-af529be0 in my personal fork of openjdk/jdk17u-dev. To create a pull request with this backport targeting openjdk/jdk17u-dev:master, just click the following link:

➡️ Create pull request

The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:

Hi all,

This pull request contains a backport of commit af529be0 from the openjdk/jdk repository.

The commit being backported was authored by Daniel Jeliński on 3 Aug 2022 and was reviewed by Daniel Fuchs and Jaikiran Pai.

Thanks!

If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk17u-dev:

$ git fetch https://github.com/openjdk-bots/jdk17u-dev GoeLin-backport-af529be0:GoeLin-backport-af529be0
$ git checkout GoeLin-backport-af529be0
# make changes
$ git add paths/to/changed/files
$ git commit --message 'Describe additional changes made'
$ git push https://github.com/openjdk-bots/jdk17u-dev GoeLin-backport-af529be0

GoeLin commented on Sep 27, 2022

@GoeLin
Member

/backport jdk11u-dev

openjdk[bot] commented on Sep 27, 2022

@openjdk[bot]

@GoeLin the backport was successfully created on the branch GoeLin-backport-af529be0 in my personal fork of openjdk/jdk11u-dev. To create a pull request with this backport targeting openjdk/jdk11u-dev:master, just click the following link:

➡️ Create pull request

The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:

Hi all,

This pull request contains a backport of commit af529be0 from the openjdk/jdk repository.

The commit being backported was authored by Daniel Jeliński on 3 Aug 2022 and was reviewed by Daniel Fuchs and Jaikiran Pai.

Thanks!

If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk11u-dev:

$ git fetch https://github.com/openjdk-bots/jdk11u-dev GoeLin-backport-af529be0:GoeLin-backport-af529be0
$ git checkout GoeLin-backport-af529be0
# make changes
$ git add paths/to/changed/files
$ git commit --message 'Describe additional changes made'
$ git push https://github.com/openjdk-bots/jdk11u-dev GoeLin-backport-af529be0
Please sign in to comment.