Hello, thanks for the suggestion - i tried it out but it does not seem to work - the server listener port is closed (this worked for me before) however the client who connects still has the sessions opened. After doing a close(true) on all sessions - and confirming with acceptor.getManagedSessions().size() that there are indeed 0 sessions left - im puzzled who is to blame - the mina server or postfix ?
Here is the netstat output after at least one session has been created (there are 2 mina services running, at 10027 and 10028) tcp 0 0 127.0.0.1:10027 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:10028 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:54751 127.0.0.1:10028 ESTABLISHED tcp 0 0 127.0.0.1:56901 127.0.0.1:10027 TIME_WAIT tcp 0 0 127.0.0.1:10028 127.0.0.1:54751 ESTABLISHED after i shutdown the server and a debug output confirmed that the address was unbind, and 0 sessions are left - im left with this tcp 1 0 127.0.0.1:54751 127.0.0.1:10028 CLOSE_WAIT tcp 0 0 127.0.0.1:56901 127.0.0.1:10027 TIME_WAIT tcp 0 0 127.0.0.1:10028 127.0.0.1:54751 FIN_WAIT2 the client is still connecting to 10027 and 28, and for some reason the server port for 10028 is still open but on fin_wait2. I also tried adding acceptor.dispose(); after unbind - no dice. Any further ideas? Thanks
