You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by James-Usertunnel <cl...@netspeed-tech.com> on 2006/07/01 03:04:00 UTC

Address Already In Use

Hi there

 

         I referenced many docs and other frameworks take QuickServer for
example. I found when server built on MINA restarted there were always
connections stuck in TIME_WAIT,FIN_WAIT1 or FIN_WAIT2 status no matter
whether the option reuse address is enabled. So I think it's a MINA's BUG
right. Sorry to send a lot of e-mail to describe this situation, cause it's
very important to me which makes me can't restart server as quickly as
possible.

 

 

 

Thanks for help


Re: Address Already In Use

Posted by peter royal <pr...@apache.org>.
On Jun 30, 2006, at 9:04 PM, James-Usertunnel wrote:
>          I referenced many docs and other frameworks take  
> QuickServer for
> example. I found when server built on MINA restarted there were always
> connections stuck in TIME_WAIT,FIN_WAIT1 or FIN_WAIT2 status no matter
> whether the option reuse address is enabled. So I think it's a  
> MINA's BUG
> right. Sorry to send a lot of e-mail to describe this situation,  
> cause it's
> very important to me which makes me can't restart server as quickly as
> possible.

To eliminate TIME_WAIT, be sure to close the connection from the far  
end, where possible.

Otherwise, set SO_LINGER to 0, and you'll get forceful closes that  
skip those states.

-pete


-- 
proyal@apache.org - http://fotap.org/~osi