Inconsistent SSLEngine behavior for closing outbound while in handshake in 11ea22

2018-07-17 Thread Tim Brooks
My understanding is that when you are interested in closing the underlying socket when using the SSLEngine, you must call closeOutbound() and WRAP and UNWRAP until both isInboundDone() and isOutboundDone() return true. One edge case of this is if you are interested in closing the socket prior to

Re: Inconsistent SSLEngine behavior for closing outbound while in handshake in 11ea22

2018-07-18 Thread Tim Brooks
M, Xuelei Fan wrote: > > Hi, > > We are working on the JDK 11 close issue. > https://bugs.openjdk.java.net/browse/JDK-8207009 > > I appreciate if you can help test if we have a patch. > > Thanks, > Xuelei > > On 7/17/2018 4:26 PM, Tim Brooks wrote: >>

Re: Inconsistent SSLEngine behavior for closing outbound while in handshake in 11ea22

2018-08-03 Thread Tim Brooks
Property as a workaround. > > Thanks, > Xuelei > > On 7/18/2018 11:51 AM, Tim Brooks wrote: >> Yes. I can test once there is a patch. My inquiry was motivated by some work >> on Elasticsearch fyi. I can test a patch against that work. >> https://github.

Re: Inconsistent SSLEngine behavior for closing outbound while in handshake in 11ea22

2018-08-03 Thread Tim Brooks
er, existing applications may not did > this way because TLS 1.2 and prior version can work around it. But for TLS > 1.3, it is possible to hang the application if the connection is not closed. > If the source code update is not available, please consider to use the > "jdk.tls.

Re: Inconsistent SSLEngine behavior for closing outbound while in handshake in 11ea22

2018-08-03 Thread Tim Brooks
case that I can use to > reproduce the issues? > > Thanks, > Xuelei > > On 8/3/2018 5:04 PM, Tim Brooks wrote: >> Hi Xuelei >> I pulled the JDK 11 source today and applied your patch. And then I built >> the jdk to run some tests. I hope that is the correct app

Re: Inconsistent SSLEngine behavior for closing outbound while in handshake in 11ea22

2018-08-06 Thread Tim Brooks
ote: > > Hi Tim, > > Your concerns make sense to me. Did you have a test case that I can use to > reproduce the issues? > > Thanks, > Xuelei > > On 8/3/2018 5:04 PM, Tim Brooks wrote: >> Hi Xuelei >> I pulled the JDK 11 source today and applied your pa

Re: Inconsistent SSLEngine behavior for closing outbound while in handshake in 11ea22

2018-08-09 Thread Tim Brooks
Hi Xuelei, My test passed using that patch. I’ll continue to explore over the next few days. But that patch resolves the main issues that I had encountered. Thanks, - Tim > On Aug 7, 2018, at 8:54 AM, Xuelei Fan wrote: > > Xuelei