8249786: java/net/httpclient/websocket/PendingPingTextClose.java fails very infrequently

Daniel Fuchs daniel.fuchs at oracle.com
Fri Aug 7 12:59:24 UTC 2020


Hi Pavel,

Thanks for the review!

On 07/08/2020 13:49, Pavel Rappo wrote:
> May I suggest we use this?
> 
>      ChannelState s;
>      assert (s = writeState.get()) == CLOSED : s;
> 
> Or better still,
> 
>      ChannelState s = writeState.get();
>      assert s == CLOSED : s;
> 

I'll do that before pushing.

best regards,

-- daniel



More information about the net-dev mailing list