Re: RFR: 8278339: ServerSocket::isClosed may return false after accept throws

2021-12-07 Thread Daniel Fuchs
On Tue, 7 Dec 2021 12:29:09 GMT, Alan Bateman wrote: > JDK-8278270 introduces a small regression. If a ServerSocket is closed while > another thread is blocked in the accept method then the other thread may > observe isClosed returning false, i.e. code may catch IOException and check > isClose

RFR: 8278339: ServerSocket::isClosed may return false after accept throws

2021-12-07 Thread Alan Bateman
JDK-8278270 introduces a small regression. If a ServerSocket is closed while another thread is blocked in the accept method then the other thread may observe isClosed returning false, i.e. code may catch IOException and check isClosed before the "closed" flag gets to true. I've changed the clos