8284892: java/net/httpclient/http2/TLSConnection.java fails intermittently
Reviewed-by: djelinski, jpai, michaelm
This commit is contained in:
parent
510003cfe3
commit
1e22c70ff2
@ -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
|
||||
@ -166,12 +166,13 @@ public class TLSConnection {
|
||||
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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user