harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Li Jing Qin (JIRA)" <j...@apache.org>
Subject [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
Date Fri, 05 Mar 2010 07:39:27 GMT

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

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

Hi Ray,

I have misunderstood your test case. It should throw AsynchronousCloseException when another
thread close the Channel. If you comment out the ssc.configureBlocking line, harmony and ri
all works well.
About configureBlocking mode: if you comment out the ssc.close line, you will find that ssc.accept
still wait for a connection, even though it is set to NON_BLOCKING. It is kind of reasonable
from the native view but unreason from the java view.

Any way, I agree your patch.

One more thing, ServerSocketChannelImpl use select to fake the NON_BLOCKING, but SocketChannel
set flag on fd to support the NON_BLOCKING. Does anyone know where does this difference come
from?

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


Mime
View raw message