A hard-to-reproduce EPollSelector bug...

Alan Bateman Alan.Bateman at oracle.com
Thu Mar 15 14:17:23 UTC 2018


On 15/03/2018 14:02, David Lloyd wrote:
> This talk of Selectors has indirectly reminded me of a problem that we
> encounter, particularly in testing, which I think is a bug (or maybe
> just a surprise) in the EPollSelector implementation on Linux.
>
> The symptom of the problem is that a ServerSocketChannel is closed,
> yet a subsequent bind operation which definitely happens-after the
> close on the same socket address can fail with EADDRINUSE (even if
> SO_REUSEADDR is used).
>
Do you have a reproducer? If so, can you run it on the latest JDK 11 
build where the bind method is now correctly synchronized on the channel 
state.

-Alan


More information about the nio-dev mailing list