> From: <[email protected]> > 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
