Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 39111 invoked from network); 17 Apr 2007 21:50:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Apr 2007 21:50:37 -0000 Received: (qmail 42440 invoked by uid 500); 17 Apr 2007 21:50:42 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 42394 invoked by uid 500); 17 Apr 2007 21:50:42 -0000 Mailing-List: contact commits-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 commits@harmony.apache.org Received: (qmail 42377 invoked by uid 99); 17 Apr 2007 21:50:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Apr 2007 14:50:42 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Apr 2007 14:50:35 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C7329714076 for ; Tue, 17 Apr 2007 14:50:15 -0700 (PDT) Message-ID: <4242423.1176846615813.JavaMail.jira@brutus> Date: Tue, 17 Apr 2007 14:50:15 -0700 (PDT) From: "Nathan Beyer (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-2503) [classlib][luni]ServerSocket refuses connection on 0.0.0.0 after successful connection on localhost In-Reply-To: <12403991.1165419741033.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-2503?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nathan Beyer updated HARMONY-2503: ---------------------------------- Summary: [classlib][luni]ServerSocket refuses connection on 0.0.0.0 after successful connection on localhost (was: [classlib][net]ServerSocket refuses connection on 0.0.0.0 after successful connection on localhost) > [classlib][luni]ServerSocket refuses connection on 0.0.0.0 after successful connection on localhost > --------------------------------------------------------------------------------------------------- > > Key: HARMONY-2503 > URL: https://issues.apache.org/jira/browse/HARMONY-2503 > Project: Harmony > Issue Type: Bug > Components: Classlib > Environment: WinXP > Reporter: Nikolay Kuznetsov > Assigned To: Nathan Beyer > Attachments: Harmony-2503-2.diff, Harmony-2503.diff, test.java > > > ServerSocket listening on 0.0.0.0 (any_address) refuses connection to 0.0.0.0 if prior to this successful connection was established on localhost:8080 inside same JVM i.e. the following sequence of accept/connect actions results in Connection Refused exception > > ServerSocket(localhost:8080).accept() > Socket.connect(localhost:8080 > ServerSocket(0:8080).accept() > Socket.connect(0:8080) -> Connection refused > while reverse set of actions(first connect to 0 and localhost afterwards) works fine: > ServerSocket(0:8080).accept() > Socket.connect(0:8080) > ServerSocket(localhost:8080).accept() > Socket.connect(localhost:8080) > RI works fine in both cases, attached test demonstrates this problem. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.