Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 58902 invoked from network); 1 Sep 2010 05:50:21 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Sep 2010 05:50:21 -0000 Received: (qmail 14355 invoked by uid 500); 1 Sep 2010 05:50:21 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 14026 invoked by uid 500); 1 Sep 2010 05:50:18 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 13944 invoked by uid 99); 1 Sep 2010 05:50:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Sep 2010 05:50:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Sep 2010 05:50:15 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o815nrfC006957 for ; Wed, 1 Sep 2010 05:49:53 GMT Message-ID: <30620607.111061283320193677.JavaMail.jira@thor> Date: Wed, 1 Sep 2010 01:49:53 -0400 (EDT) From: "Li Jing Qin (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-6638) [classlib][nio]Some Selector behavior fixed. In-Reply-To: <18182878.87561283237333284.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-6638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Li Jing Qin updated HARMONY-6638: --------------------------------- Attachment: HARMONY-6638.diff Some test cases is not suitable for windows, I have add a new test case in the unix. Others are add in the common. Is anyone interested in this? > [classlib][nio]Some Selector behavior fixed. > -------------------------------------------- > > Key: HARMONY-6638 > URL: https://issues.apache.org/jira/browse/HARMONY-6638 > Project: Harmony > Issue Type: Bug > Components: Classlib > Affects Versions: 5.0M14 > Reporter: Li Jing Qin > Priority: Critical > Fix For: 5.0M15 > > Attachments: HARMONY-6638.diff > > > There are some problems with harmony Selector: > 1. When a serversocket channel does not bind anything, selector should return acceptable. In this situation, poll return POLLHUP. I add this flag to the native code. > 2. The same as 1, when a socketChannel does not connect any anything, selector should return connectable. In this situation, poll return POLLHUP, I also add this flag to the native code. > 3. As the spec said, selector should also return if an error occurred. I'm not testing the error condition, but I add POLLERR to the native code. > 4. If user change the interested operations of a selector, this selector should treated as a new one (but with the same SelectionKey). On the other hand, if the selector was return once and no interested operation changed, it should not be selected next time. I have add a flag stateChange in the SelectionKeyImpl to save this state. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.