Le 10/06/16 à 15:57, Jonathan Valliere a écrit : > That's pretty simple. In Linux set the file descriptor limit to something > small like 500. Then try to open 1000 connections remotely. It spins out of > control because accept() fails due to lack of FDs. My code sleeps the > acceptor thread when that happens. This behavior has nothing to do with Java > and is a function of the underlying OS.
I'm going to test that. Regardless, this is a very different situation than what the code is addressing. We may have to address this specific case too, in order to avoid the re-creation of selector for nothing, when the ulimit is not set properly... Thanks for the insight.