mina-ftpserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niklas Gustavsson <nik...@protocol7.com>
Subject Re: Multiple listeners allowed on same port
Date Tue, 07 Sep 2010 11:12:07 GMT
> From:  <Magnus.p.Andersson@tieto.com>
> 1) Server1: listen
> 2) Server2: listen (this fails as it should)
> 3) Server1: close
> 4) Server2: listen
>
> Step 4 is seemingly successful, but when I connect with a client
> FtpHandlerAdapter only runs sessionCreated and never reaches
> sessionOpened.

I'm guessing this happens while the old socket is in TIME_WAIT state.
Could you check with netstat that when the socket goes away (might
take 5 minutes), you can launch the server as expected? This is what
SO_REUSEADDR is supposed to enable (that you can reuse the address
during TIME_WAIT).

/niklas

Mime
View raw message