harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ray Chen (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-6473) [classlib][nio]SocketChannel's bug when then main thread is in blocking read() and another thread trired to close it
Date Mon, 15 Mar 2010 08:01:27 GMT

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

Ray Chen updated HARMONY-6473:
------------------------------

    Attachment: Harmony6473_TestCase.java

The attached test case will reproduce the problem.

For RI, it will got AsynchronousCloseException succesfully.

> [classlib][nio]SocketChannel's bug when then main thread is in blocking read() and another
thread trired to close it
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-6473
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6473
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows, Linux
>            Reporter: Ray Chen
>         Attachments: Harmony6473_TestCase.java
>
>
> On Windows, throws the java.net.SocketException, and the exception trace as following:
> Uncaught exception in main:
> java.net.SocketException: The socket argument is not a socket
> 	at org.apache.harmony.luni.platform.OSNetworkSystem.read(OSNetworkSystem.java)
> 	at org.apache.harmony.nio.internal.SocketChannelImpl.readImpl(SocketChannelImpl.java:455)
> 	at org.apache.harmony.nio.internal.SocketChannelImpl.read(SocketChannelImpl.java:373)
> 	at CMVC151710_SocketChannel.runTest(CMVC151710_SocketChannel.java:48)
> 	at CMVC151710_SocketChannel.main(CMVC151710_SocketChannel.java:14)
> On linux, the blocking read() hang forever

-- 
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