mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter royal <pro...@apache.org>
Subject Re: Address Already In Use
Date Mon, 03 Jul 2006 15:14:12 GMT
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




Mime
View raw message