You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Li Jing Qin (JIRA)" <ji...@apache.org> on 2010/03/05 05:10:27 UTC

[jira] Commented: (HARMONY-6375) [classlib][nio]ServerSocketChannel hang when the main thread is waiting for request to accept and another thread try to configure the block mode on one channel

    [ https://issues.apache.org/jira/browse/HARMONY-6375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12841696#action_12841696 ] 

Li Jing Qin commented on HARMONY-6375:
--------------------------------------

Hi Ray,
What does the RI behave if one is accepting and another is trying to change the block mode?

>From the native aspect, when accept is called for a blocking socket, it should be blocked. So if we have configure it as block and accept, the process should be put to sleep. During this sleep, if we change the blocking mode, it should not have any affect.

> [classlib][nio]ServerSocketChannel hang when the main thread is waiting for request to accept and another thread try to configure the block mode on one channel
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-6375
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6375
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: All platforms
>            Reporter: Ray Chen
>         Attachments: Harmony-6375.diff, Harmony6375TestCase.java, Harmony6375TestCase_V2.java
>
>
> As the summary described:
> One thread is waiting for request to accept and another thread is trying to configure the block mode on the same channel.
> I will attach one test case file to describe the problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.