You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Jimmy, Jing Lv (JIRA)" <ji...@apache.org> on 2006/08/25 09:15:47 UTC

[jira] Created: (HARMONY-1278) [classlib][nio]Bug in SocketChannel.connect(SocketAddress)

[classlib][nio]Bug in SocketChannel.connect(SocketAddress)
----------------------------------------------------------

                 Key: HARMONY-1278
                 URL: http://issues.apache.org/jira/browse/HARMONY-1278
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Jimmy, Jing Lv
         Attachments: Harmony1278.diff

Hi,
    SocketChannel refuse to connect some address. The cause of this bug is that it should bind to InetAddress.ANY instead of localhost.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-1278) [classlib][nio]Bug in SocketChannel.connect(SocketAddress)

Posted by "Jimmy, Jing Lv (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1278?page=comments#action_12430463 ] 
            
Jimmy, Jing Lv commented on HARMONY-1278:
-----------------------------------------

Hi,
    Oops, I've seek into SocketChannel and find the interaction between SocketChannel and socket has something wrong. I shall fix this bug soon.

> [classlib][nio]Bug in SocketChannel.connect(SocketAddress)
> ----------------------------------------------------------
>
>                 Key: HARMONY-1278
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1278
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Jimmy, Jing Lv
>         Assigned To: Paulex Yang
>         Attachments: Harmony1278.diff
>
>
> Hi,
>     SocketChannel refuse to connect some address. The cause of this bug is that it should bind to InetAddress.ANY instead of localhost.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-1278) [classlib][nio]Bug in SocketChannel.connect(SocketAddress)

Posted by "Jimmy, Jing Lv (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1278?page=all ]

Jimmy, Jing Lv updated HARMONY-1278:
------------------------------------

    Attachment: Harmony1278.diff

Hi,

    Would you please try this patch? Thanks!

Best Regards,
Jimmy

> [classlib][nio]Bug in SocketChannel.connect(SocketAddress)
> ----------------------------------------------------------
>
>                 Key: HARMONY-1278
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1278
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Jimmy, Jing Lv
>         Assigned To: Paulex Yang
>         Attachments: Harmony1278.diff, Harmony1278.diff
>
>
> Hi,
>     SocketChannel refuse to connect some address. The cause of this bug is that it should bind to InetAddress.ANY instead of localhost.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-1278) [classlib][nio]Bug in SocketChannel.connect(SocketAddress)

Posted by "Jimmy, Jing Lv (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1278?page=comments#action_12432054 ] 
            
Jimmy, Jing Lv commented on HARMONY-1278:
-----------------------------------------

Hi Paulex,

    The fix is fine, thanks!

Best Regards,
Jimmy

> [classlib][nio]Bug in SocketChannel.connect(SocketAddress)
> ----------------------------------------------------------
>
>                 Key: HARMONY-1278
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1278
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Jimmy, Jing Lv
>         Assigned To: Paulex Yang
>         Attachments: Harmony1278.diff, Harmony1278.diff
>
>
> Hi,
>     SocketChannel refuse to connect some address. The cause of this bug is that it should bind to InetAddress.ANY instead of localhost.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (HARMONY-1278) [classlib][nio]Bug in SocketChannel.connect(SocketAddress)

Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1278?page=all ]

Paulex Yang closed HARMONY-1278.
--------------------------------


Verified by Jimmy

> [classlib][nio]Bug in SocketChannel.connect(SocketAddress)
> ----------------------------------------------------------
>
>                 Key: HARMONY-1278
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1278
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Jimmy, Jing Lv
>         Assigned To: Paulex Yang
>         Attachments: Harmony1278.diff, Harmony1278.diff
>
>
> Hi,
>     SocketChannel refuse to connect some address. The cause of this bug is that it should bind to InetAddress.ANY instead of localhost.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (HARMONY-1278) [classlib][nio]Bug in SocketChannel.connect(SocketAddress)

Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1278?page=all ]

Paulex Yang resolved HARMONY-1278.
----------------------------------

    Resolution: Fixed

Jimmy, patch applied at revision r437591, thanks a lot for this enhancement, please verify that the problem is fully fixed as you expected.


> [classlib][nio]Bug in SocketChannel.connect(SocketAddress)
> ----------------------------------------------------------
>
>                 Key: HARMONY-1278
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1278
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Jimmy, Jing Lv
>         Assigned To: Paulex Yang
>         Attachments: Harmony1278.diff, Harmony1278.diff
>
>
> Hi,
>     SocketChannel refuse to connect some address. The cause of this bug is that it should bind to InetAddress.ANY instead of localhost.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HARMONY-1278) [classlib][nio]Bug in SocketChannel.connect(SocketAddress)

Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1278?page=comments#action_12430428 ] 
            
Paulex Yang commented on HARMONY-1278:
--------------------------------------

Jimmy, this patch caused two NIO tests failure: 
testSocket_Block_BasicStatusAfterConnect, testSocket_NonBlock_BasicStatusAfterConnect, 
and the error messages are same:
expected:</0.0.0.0> but was:<localhost/127.0.0.1>

junit.framework.AssertionFailedError: expected:</0.0.0.0> but was:<localhost/127.0.0.1> at org.apache.harmony.tests.java.nio.channels.SocketChannelTest.assertSocketAfterConnect(SocketChannelTest.java:429) at org.apache.harmony.tests.java.nio.channels.SocketChannelTest.testSocket_Block_BasicStatusAfterConnect(SocketChannelTest.java:288) at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25)

have you found this error before?

> [classlib][nio]Bug in SocketChannel.connect(SocketAddress)
> ----------------------------------------------------------
>
>                 Key: HARMONY-1278
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1278
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Jimmy, Jing Lv
>         Assigned To: Paulex Yang
>         Attachments: Harmony1278.diff
>
>
> Hi,
>     SocketChannel refuse to connect some address. The cause of this bug is that it should bind to InetAddress.ANY instead of localhost.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-1278) [classlib][nio]Bug in SocketChannel.connect(SocketAddress)

Posted by "Jimmy, Jing Lv (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1278?page=all ]

Jimmy, Jing Lv updated HARMONY-1278:
------------------------------------

    Attachment: Harmony1278.diff

Hi,

    Would you please try my patch?

Thanks!
Jimmy

> [classlib][nio]Bug in SocketChannel.connect(SocketAddress)
> ----------------------------------------------------------
>
>                 Key: HARMONY-1278
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1278
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Jimmy, Jing Lv
>         Attachments: Harmony1278.diff
>
>
> Hi,
>     SocketChannel refuse to connect some address. The cause of this bug is that it should bind to InetAddress.ANY instead of localhost.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (HARMONY-1278) [classlib][nio]Bug in SocketChannel.connect(SocketAddress)

Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1278?page=all ]

Paulex Yang reassigned HARMONY-1278:
------------------------------------

    Assignee: Paulex Yang

> [classlib][nio]Bug in SocketChannel.connect(SocketAddress)
> ----------------------------------------------------------
>
>                 Key: HARMONY-1278
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1278
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Jimmy, Jing Lv
>         Assigned To: Paulex Yang
>         Attachments: Harmony1278.diff
>
>
> Hi,
>     SocketChannel refuse to connect some address. The cause of this bug is that it should bind to InetAddress.ANY instead of localhost.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira