http-client-branch: minor cleanup http-client-branch
authorchegar
Wed, 28 Feb 2018 19:13:16 +0000
branchhttp-client-branch
changeset 56210 efa5db108669
parent 56209 43d5ad612710
child 56218 fd7bd32963ef
http-client-branch: minor cleanup
src/java.net.http/share/classes/jdk/internal/net/http/MultiExchange.java
test/jdk/java/net/httpclient/http2/server/Http2TestServer.java
--- a/src/java.net.http/share/classes/jdk/internal/net/http/MultiExchange.java	Wed Feb 28 15:48:46 2018 +0000
+++ b/src/java.net.http/share/classes/jdk/internal/net/http/MultiExchange.java	Wed Feb 28 19:13:16 2018 +0000
@@ -291,13 +291,13 @@
             if (t.getCause() != null) retryCause = t.getCause();
             if (!expiredOnce) {
                 DEBUG_LOGGER.log(Level.DEBUG,
-                    "MultiExchange: ConnectionExpiredException (async): retrying...",
+                    "ConnectionExpiredException (async): retrying...",
                     t);
                 expiredOnce = true;
                 return null;
             } else {
                 DEBUG_LOGGER.log(Level.DEBUG,
-                    "MultiExchange: ConnectionExpiredException (async): already retried once.",
+                    "ConnectionExpiredException (async): already retried once.",
                     t);
                 if (t.getCause() != null) t = t.getCause();
             }
--- a/test/jdk/java/net/httpclient/http2/server/Http2TestServer.java	Wed Feb 28 15:48:46 2018 +0000
+++ b/test/jdk/java/net/httpclient/http2/server/Http2TestServer.java	Wed Feb 28 19:13:16 2018 +0000
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -245,6 +245,11 @@
                         //throw e;
                     }
                 }
+            } catch (SecurityException se) {
+                System.err.println("TestServer: terminating, caught " + se);
+                se.printStackTrace();
+                stopping = true;
+                try { server.close(); } catch (IOException ioe) { /* ignore */}
             } catch (Throwable e) {
                 if (!stopping) {
                     System.err.println("TestServer: terminating, caught " + e);