I'm using MINA 2.0.0 M2 , java 1.6.
The problem is that IoAcceptor.unbind() doesn't seem to work . The clients
are not disconnected ( the disconnect is set ), and the port is not released
at all. Even after closing the program, the port is still used and freed on
a later time by the operating system.
My code for the unbinding operation is :
try
        {
            acceptor.unbind(new InetSocketAddress(portValue));

        }
        catch(Exception exception)
        {
           exception.printStackTrace();
        }

acceptor is an IoAcceptor object, also, there is no exception.
I tried to browse the sources but I couldn't find the bind0 method used for
unbinding, only in some abstract version that needs implementing.
Maybe I'm doing something wrong ?

Thanks a lot

Reply via email to