Guillaume Nodet wrote:
On OS X, the test does not behave the same way: the session is created
and the byte written, but the server does not have any managed session
so the last assertion fails.
To make this test fail as expected, I need to add the following calls
to AbstractPollingIoAcceptor#unbind0
startupAcceptor();
wakeup();
I may have an explanation. In the unregisterHandles() method, the
handle is closed and then there is a call to wakeup(). However, when
the last bound socket is unregistered, the Acceptor#run() method will
simply exit just after the call to unregisterHandles() because
nHandles == 0. So I think the call to wakeup() has no effect at all,
because the acceptor is not running anymore, thus no select() call is
performed.
Sounds to me like it's a big F**** mess...
A global review may be needed !
--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org