Return-Path: X-Original-To: apmail-river-dev-archive@www.apache.org Delivered-To: apmail-river-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 00603D91E for ; Sat, 10 Nov 2012 21:04:58 +0000 (UTC) Received: (qmail 70816 invoked by uid 500); 10 Nov 2012 21:04:57 -0000 Delivered-To: apmail-river-dev-archive@river.apache.org Received: (qmail 70792 invoked by uid 500); 10 Nov 2012 21:04:57 -0000 Mailing-List: contact dev-help@river.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@river.apache.org Delivered-To: mailing list dev@river.apache.org Received: (qmail 70784 invoked by uid 99); 10 Nov 2012 21:04:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Nov 2012 21:04:57 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [207.57.65.70] (HELO zeus.net.au) (207.57.65.70) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Nov 2012 21:04:48 +0000 Received: (qmail 81342 invoked by uid 16710); 10 Nov 2012 21:04:25 -0000 Received: from unknown (HELO [10.1.1.2]) ([61.9.223.241]) (envelope-sender ) by 207.57.65.70 (qmail-ldap-1.03) with SMTP for ; 10 Nov 2012 21:04:25 -0000 Message-ID: <509EBEBA.5070502@zeus.net.au> Date: Sun, 11 Nov 2012 06:53:14 +1000 From: Peter Firmstone User-Agent: Thunderbird 2.0.0.14 (X11/20080531) MIME-Version: 1.0 To: dev@river.apache.org Subject: Re: svn commit: r1407747 - /river/jtsk/trunk/src/com/sun/jini/reggie/RegistrarImpl.java References: <20121110103247.2DADC238896F@eris.apache.org> <509E305E.1000607@qcg.nl> <509E3FAD.1040806@zeus.net.au> <509E4C00.4060709@qcg.nl> In-Reply-To: <509E4C00.4060709@qcg.nl> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Simon IJskes - QCG wrote: > On 10-11-12 12:51, Peter Firmstone wrote: >>> Why did you not use ServerSocket.setReuseAddress(true)? > >> 3. You can't reconnect to the same remote TCP IP address during the >> TIME_WAIT period. > > Which caveat are you refering to? TIME_WAIT? You mean at the client > side? Shouldnt the client get an ephemeral port for the next connection? > > This new port number ensures a unique association 5-tuple. (Stevens, > 1990, Unix network programming, Section 5.2) > > I've never had problems with SO_REUSEADDR! It is in use for EVERY > server bound to a fixed port on this planet, isn't it? > > It's set to true for most Unix platforms, as far as I'm aware. If the client side remotely closes the ServerSocket, then there's no TIME_WAIT period, it's only when the ServerSocket is closed by the server. I'm kinda stretched for time right now, I'll go into more depth for you later this week if you need me to.