--- a/test/jdk/java/net/httpclient/TimeoutBasic.java Wed Jan 31 15:52:35 2018 +0000
+++ b/test/jdk/java/net/httpclient/TimeoutBasic.java Wed Jan 31 16:18:41 2018 +0000
@@ -153,6 +153,11 @@
count++;
try {
HttpResponse<?> resp = client.sendAsync(request, discard(null)).join();
+ out.println("Unexpected response for: " + request);
+ out.println("\t from " + ss.getLocalSocketAddress());
+ out.println("Response is: " + resp);
+ out.println("Headers: " + resp.headers().map());
+ out.println("Body (should be null): " + resp.body());
throw new RuntimeException("Unexpected response: " + resp.statusCode());
} catch (CompletionException e) {
if (!(e.getCause() instanceof HttpTimeoutException)) {