Code Review Request, JDK-8214418 HttpClient falls in running with 100% cpu usage after an error signalled on channel

Xue-Lei Fan at
Fri Jan 11 01:26:43 UTC 2019

On 1/9/2019 10:58 AM, Daniel Fuchs wrote:
> Hi Xuelei,
> On 22/12/2018 17:20, Xue-Lei Fan wrote:
>> The issue is caused by the handshake status "NEED_WRAP" while the 
>> connection is half-closed. An application may just call wrap() when 
>> the handshake status is "NEED_WRAP". For compatibility, I changed the 
>> handshake status from NEED_WRAP back to NOT_HANDSHAKING for inbound 
>> half-closed connection.  An application can use 
>> SSLEngine.isOutboundDone() for the determination if SSLEngine.wrap() 
>> should be called.
> For clarification: the logic for the application would be to call
> SSLEngine.isOutboundDone(), and if that is false, to call
> SSLEngine.wrap() in order to trigger the sending of the close notify
> response. Is my understanding correct?


More information about the security-dev mailing list