Integrated: 8267108: Alternate Subject.getSubject and doAs APIs that do not depend on Security Manager APIs

2021-11-10 Thread Weijun Wang
On Thu, 5 Aug 2021 20:10:44 GMT, Weijun Wang wrote: > New `Subject` APIs `current()` and `callAs()` are created to be replacements > of `getSubject()` and `doAs()` since the latter two methods are now > deprecated for removal. > > In this implementation, by default, `current()` returns the sam

Re: RFR: 8274524: SSLSocket.close() hangs if it is called during the ssl handshake [v4]

2021-11-10 Thread Alexey Bakhtin
On Wed, 10 Nov 2021 17:28:18 GMT, Xue-Lei Andrew Fan wrote: > Did you have a chance to analysis the potential deadlock issues between > handshake lock, read lock, write lock and socket lock? The locks used in > SSLSocketImpl is complicated. If I remember correctly, there are potential > deadlo

Re: RFR: 8274524: SSLSocket.close() hangs if it is called during the ssl handshake [v4]

2021-11-10 Thread Xue-Lei Andrew Fan
On Wed, 3 Nov 2021 17:02:40 GMT, Alexey Bakhtin wrote: >> Please review the patch for JDK-8274524 >> >> The fix just adds locks around InputStream read and skip operations to >> prevent concurrent read from socket. >> sun/security/ssl jtreg tests passed >> api/javax_net/ssl/SSLSocket/setUseClie

Re: RFR: 8274524: SSLSocket.close() hangs if it is called during the ssl handshake [v4]

2021-11-10 Thread Alexey Bakhtin
On Wed, 3 Nov 2021 17:02:40 GMT, Alexey Bakhtin wrote: >> Please review the patch for JDK-8274524 >> >> The fix just adds locks around InputStream read and skip operations to >> prevent concurrent read from socket. >> sun/security/ssl jtreg tests passed >> api/javax_net/ssl/SSLSocket/setUseClie