Skip to content

Commit

Permalink
8284892: java/net/httpclient/http2/TLSConnection.java fails intermitt…
Browse files Browse the repository at this point in the history
…ently

Backport-of: 1e22c70ff2e010740cb22856a642dd4afa1017cc
  • Loading branch information
GoeLin committed Sep 22, 2022
1 parent b75b932 commit 8a9420a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/jdk/java/net/httpclient/http2/TLSConnection.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2022, 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
Expand Down Expand Up @@ -166,12 +166,13 @@ public void handle(Http2TestExchange t) throws IOException {
System.out.println(new String(body));
}

sslSession = t.getSSLSession();

try (OutputStream os = t.getResponseBody()) {
t.sendResponseHeaders(200, BODY.length);
os.write(BODY);
}

sslSession = t.getSSLSession();
}

SSLSession getSSLSession() {
Expand Down

1 comment on commit 8a9420a

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.