You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Patrick Hunt (JIRA)" <ji...@apache.org> on 2009/11/07 05:53:41 UTC

[jira] Resolved: (ZOOKEEPER-560) inefficient request handling in NIOServerCnxn

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

Patrick Hunt resolved ZOOKEEPER-560.
------------------------------------

      Resolution: Fixed
        Assignee: Patrick Hunt
    Hadoop Flags: [Reviewed]

Fixed as part of ZOOKEEPER-558

> inefficient request handling in NIOServerCnxn
> ---------------------------------------------
>
>                 Key: ZOOKEEPER-560
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-560
>             Project: Zookeeper
>          Issue Type: Improvement
>          Components: server
>            Reporter: Patrick Hunt
>            Assignee: Patrick Hunt
>             Fix For: 3.3.0
>
>
> the server doIO code, specifically for read is inefficiently handling requests.
> dio does the following for reads
> if new request received: read length and return
> else read request body and return
> ....
> as a result we poll the selector twice for each request from a client.
> we should just read the request fully, reducing selector polling by half

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