Hi Zhijun,
try this: ---- nioSocketAcceptor.setReuseAddress(true); ---- best regards from Germany, Alex On Tue, 2 Jun 2009 06:46:29 -0400, "Zhijun Sheng" <[email protected]> wrote: > Hi, Community, > > > > I'm using mina 2.0.0 M5 on linux box. Every time I restarted the server > immediately after it was shut down, I got "java.net.BindException: Address > already in use". Have to wait for a few minutes to be able to restart the > server successfully. Really painful. > > > > This problem seems to be fixed long ago but don't know why I keep > encountering it. Is there any way to avoid this problem? > > > > Thanks a lot in advance! > > > > Zhijun
