Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
public class KeepAliveProperty {

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

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

public static void main(String args[]) throws Exception {
// exercise the logging code
Logger logger = Logger.getLogger("sun.net.www.protocol.http.HttpURLConnection");
logger.setLevel(Level.FINEST);
ConsoleHandler h = new ConsoleHandler();
h.setLevel(Level.FINEST);
Expand Down Expand Up @@ -171,6 +171,7 @@ public static void main(String args[]) throws Exception {
if (!expectClose)
throw e;
}
s.join();

if (!pass)
throw new RuntimeException("Failed in server");
Expand Down