Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 35069 invoked from network); 19 Apr 2007 08:14:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Apr 2007 08:14:07 -0000 Received: (qmail 34750 invoked by uid 500); 19 Apr 2007 08:14:12 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 34448 invoked by uid 500); 19 Apr 2007 08:14:11 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 34439 invoked by uid 99); 19 Apr 2007 08:14:11 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Apr 2007 01:14:11 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of zhanghuangzhu@gmail.com designates 64.233.184.231 as permitted sender) Received: from [64.233.184.231] (HELO wr-out-0506.google.com) (64.233.184.231) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Apr 2007 01:14:04 -0700 Received: by wr-out-0506.google.com with SMTP id i31so518440wra for ; Thu, 19 Apr 2007 01:13:43 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=L6pLLBwh8fRpRz/e3KFvdbJC3h/GIM/iE8SN7qwL75zCuMau0P/vMdYQTNdQulglq0Z/SrfIxMsTNsKP7WUgFrf9bLJqrhpH71StlxQyQvSdXlo+eKQrGJ5yHHFyZLW1m3mrEz8MUkdZMMik1a7TnQ5Y6Ecscju59j2hP1SerqM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=SHlM1mMvMKcQcc0vMxakdPRmoq+TED9kEUK1V+YhSIgwGDDGu5tAgEJHvP82TGuvipBcTG/eaQpwBtg2fNSJLtXBK9o28dUf4d37ahMa0Sn80cAZ2fYGJWm3yRRPNrJ6mAGYrM89F2e7QmGqWXtmH7FzCdw1h70t8stPFDv8ico= Received: by 10.70.35.1 with SMTP id i1mr2866800wxi.1176970423085; Thu, 19 Apr 2007 01:13:43 -0700 (PDT) Received: by 10.100.131.19 with HTTP; Thu, 19 Apr 2007 01:13:42 -0700 (PDT) Message-ID: <4d0b24970704190113n709a01f4m93e5acd559369bfd@mail.gmail.com> Date: Thu, 19 Apr 2007 16:13:42 +0800 From: "Andrew Zhang" To: dev@harmony.apache.org Subject: Re: [classlib][luni] new test in tests.api.java.net.SocketTest failed on my Windows XP sp2 In-Reply-To: <4626D9B0.4060606@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_155274_21726832.1176970422660" References: <7273946b0704170150u10fe9f13vd430f0a3aa0399e2@mail.gmail.com> <46248CBA.7010702@gmail.com> <7273946b0704170216k43e3165cx30a19eb0ce27ea92@mail.gmail.com> <462498F7.6050300@gmail.com> <4624B462.1030607@gmail.com> <4626D9B0.4060606@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_155274_21726832.1176970422660 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 4/19/07, Ruth Cao wrote: > > Tim Ellison wrote: > > Ruth Cao wrote: > > > >> You are right, Vladimir. > >> > >> It is just because the 'port' variable is set to 8080 and on some > >> machines this port has already been occupied. The test case will pass > >> if we use Support_PortManager.getNextPort() on my side. > >> > > > > Please don't use the PortManager, just open port 0 and let the OS > > allocate a free port. There are examples in the existing tests. > > > > Regards, > > Tim > > > > > Yes, I agree that we should use port 0 in almost all the test cases. > However, it seems that this test case is a little bit special. It > requires to initialize a ServerSocket to connect 0.0.0.0 after > connecting localhost successfully. If we use port 0 and 0.0.0.0 at the > same time, the ServerSocket constructed will be invalid. Sorry Ruth, what did you mean here? A server socket will connect to somewhere? Could you please explain the scenario a bit more clearly? Thus, shall we assign a rarely-used port (e.g. 50000), or continue using > Support_PortManager? Any ideas? Suggestions? > > -- > Regards, > > Ruth Cao > China Software Development Lab, IBM > > > -- Best regards, Andrew Zhang ------=_Part_155274_21726832.1176970422660--