harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ruth Cao (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2503) [classlib][luni]ServerSocket refuses connection on 0.0.0.0 after successful connection on localhost
Date Fri, 20 Apr 2007 09:45:16 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-2503?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ruth Cao updated HARMONY-2503:
------------------------------

    Attachment: Harmony-2503-3.diff

According to the discussion on mailing list,
http://mail-archives.apache.org/mod_mbox/harmony-dev/200704.mbox/%3c7273946b0704170150u10fe9f13vd430f0a3aa0399e2@mail.gmail.com%3e

I've created a new patch to add the test case, which uses port 0 instead of Support_PortManager.
Nathan, could you try applying it? Thanks.

> [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-3.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.


Mime
View raw message