You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Ray Chen (JIRA)" <ji...@apache.org> on 2010/03/15 09:03:27 UTC
[jira] Commented: (HARMONY-6473) [classlib][nio]SocketChannel's bug
when then main thread is in blocking read() and another thread trired to
close it
[ https://issues.apache.org/jira/browse/HARMONY-6473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845224#action_12845224 ]
Ray Chen commented on HARMONY-6473:
-----------------------------------
For Linux, I have done some investigation, the main thread hang on the selectRead() of OSNetworkSystemLinux.c.
The main thread hang on the poll() system call, even another thread has closed this channel.
> [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.