mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8221882: Use fiber-friendly java.util.concurrent.locks in JSSE
Reviewed-by: alanb, dfuchs
This commit is contained in:
parent
6d617481d4
commit
8263b618ba
22 changed files with 1672 additions and 1020 deletions
|
@ -57,8 +57,7 @@ import sun.net.www.http.HttpClient;
|
|||
public class HttpsURLConnectionImpl
|
||||
extends javax.net.ssl.HttpsURLConnection {
|
||||
|
||||
// NOTE: made protected for plugin so that subclass can set it.
|
||||
protected DelegateHttpsURLConnection delegate;
|
||||
private final DelegateHttpsURLConnection delegate;
|
||||
|
||||
HttpsURLConnectionImpl(URL u, Handler handler) throws IOException {
|
||||
this(u, null, handler);
|
||||
|
@ -78,13 +77,6 @@ public class HttpsURLConnectionImpl
|
|||
delegate = new DelegateHttpsURLConnection(url, p, handler, this);
|
||||
}
|
||||
|
||||
// NOTE: introduced for plugin
|
||||
// subclass needs to overwrite this to set delegate to
|
||||
// the appropriate delegatee
|
||||
protected HttpsURLConnectionImpl(URL u) throws IOException {
|
||||
super(u);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new HttpClient object, bypassing the cache of
|
||||
* HTTP client objects/connections.
|
||||
|
@ -219,11 +211,11 @@ public class HttpsURLConnectionImpl
|
|||
* - get input, [read input,] get output, [write output]
|
||||
*/
|
||||
|
||||
public synchronized OutputStream getOutputStream() throws IOException {
|
||||
public OutputStream getOutputStream() throws IOException {
|
||||
return delegate.getOutputStream();
|
||||
}
|
||||
|
||||
public synchronized InputStream getInputStream() throws IOException {
|
||||
public InputStream getInputStream() throws IOException {
|
||||
return delegate.getInputStream();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue