river-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Firmstone <j...@zeus.net.au>
Subject Re: svn commit: r1407747 - /river/jtsk/trunk/src/com/sun/jini/reggie/RegistrarImpl.java
Date Sat, 10 Nov 2012 11:51:09 GMT
Simon IJskes - QCG wrote:
> On 10-11-12 11:32, peter_firmstone@apache.org wrote:
>> Author: peter_firmstone
>> Date: Sat Nov 10 10:32:46 2012
>> New Revision: 1407747
>>
>> URL: http://svn.apache.org/viewvc?rev=1407747&view=rev
>> Log:
>> Enable Reggie to handle a ServerSocket caught in the 4 minute TCP 
>> 2MSL TIME_WAIT state, can be safely interrupted.
>
> Why did you not use ServerSocket.setReuseAddress(true)? 

   1. It's platform dependent and causes issues on windows platforms.
   2. It may still cause a BindException
   3. You can't reconnect to the same remote TCP IP address during the
      TIME_WAIT period.

> This will hamper discovery after quick restart of a vm wouldn't it?
>
Only if the ServerSocket hasn't closed because there is an open remote 
TCP connection that hasn't ACK closed causing it to be in TIME_WAIT.

Good questions, thanks for asking.

Cheers,

Peter.

Mime
View raw message