Details
Description
Calling resume() method on the default NioListener after it has been suspended has no effect. Attempting to connect to the server results in connection refused messages to the client.
I believe the problem is because the suspend() method does not set the suspended variable to true after the acceptor.unbind() call. This value is checked by the resume() method which only resumes the listener when the value is true.
=== copied from current svn HEAD ===
public synchronized void suspend() {
if (acceptor != null && !suspended)
}
public synchronized void resume() {
if (acceptor != null && suspended) {
try
catch (IOException e)
{ LOG.error("Failed to resume listener", e); } }
}