Hi Trustin, I have just got the latest source. I'm trying to test this build. I just compared the source between 0.8.3 and latest source => there is just a minor change on the SocketAcceptor.Worker class. Am I correct?
BTW, could you please tell me that how about the plan for the version 0.8.4? Thanks & best regards, Hieu Phan. > -----Original Message----- > From: Trustin Lee [mailto:[EMAIL PROTECTED] > Sent: Monday, October 09, 2006 12:24 PM > To: [email protected] > Subject: Re: [MINA 0.8.3] Could not stop listening on Port > > I already checked in the fix for the problem you mentioned earlier. > Please > try to build the latest snapshot from our source code repository. > > On 10/9/06, Hieu Phan Thanh <[EMAIL PROTECTED]> wrote: > > > > Hello, > > > > > > > > I'm using the MINA 0.8.3. > > > > I could not stop my software due to could not stop listening on port: > > > > > > > > Please see the code below: > > > > ========================================================= > > > > public class DCServiceRegistry implements ServiceRegistry { > > > > > > > > private static Logger m_logger = > > Logger.getLogger(DCServiceRegistry.class); > > > > > > > > protected final IoAcceptor socketIoAcceptor = new > > SocketAcceptor(); > > > > > > > > protected final ProtocolAcceptor socketProtocolAcceptor= new > > IoProtocolAcceptor( > > > > > > socketIoAcceptor); > > > > > > > > protected final IoThreadPoolFilter ioThreadPoolFilter = new > > IoThreadPoolFilter(); > > > > > > > > protected final ProtocolThreadPoolFilter protocolThreadPoolFilter > > = new ProtocolThreadPoolFilter(); > > > > > > > > private final Set services = new HashSet(); > > > > > > > > > > > > /** > > > > * Stop listening on an DataPort > > > > */ > > > > public synchronized void unbind(Service service) { > > > > ProtocolAcceptor acceptor = findProtocolAcceptor(service > > > > .getTransportType()); > > > > try { > > > > String serviceString = service.toString(); > > > > m_logger.debug("Unbinding service: " + serviceString); > > > > acceptor.unbind(service.getAddress()); > > > > services.remove(service); > > > > > > > > m_logger.debug("Unbind service: " + serviceString + " > > successfully."); > > > > // > > > > } catch (Exception e) { > > > > m_logger.error("Exception: ", e); > > > > } > > > > > > > > stopThreadPools(); > > > > > > > > } > > > > ========================================================= > > > > > > > > I think that this problem is inherited from the MINA 0.8.2. > > > > If you have any idea about this issue, your advice is very appreciation. > > > > > > > > Thanks & best regards, > > > > Hieu Phan. > > > > > > > > > > > > > -- > what we call human nature is actually human habit > -- > http://gleamynode.net/ > -- > PGP key fingerprints: > * E167 E6AF E73A CBCE EE41 4A29 544D DE48 FE95 4E7E > * B693 628E 6047 4F8F CFA4 455E 1C62 A7DC 0255 ECA6
