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

Reviewed-by: djelinski, jpai, michaelm
  • Loading branch information
dfuch committed Apr 15, 2022
1 parent 510003c commit 1e22c70
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

3 comments on commit 1e22c70

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

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

@GoeLin
Copy link
Member

@GoeLin GoeLin commented on 1e22c70 Sep 19, 2022

Choose a reason for hiding this comment

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

/backport jdk17u-dev

@openjdk
Copy link

@openjdk openjdk bot commented on 1e22c70 Sep 19, 2022

Choose a reason for hiding this comment

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

@GoeLin the backport was successfully created on the branch GoeLin-backport-1e22c70f 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 1e22c70f from the openjdk/jdk repository.

The commit being backported was authored by Daniel Fuchs on 15 Apr 2022 and was reviewed by Daniel Jeliński, Jaikiran Pai and Michael McMahon.

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-1e22c70f:GoeLin-backport-1e22c70f
$ git checkout GoeLin-backport-1e22c70f
# 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-1e22c70f

Please sign in to comment.