You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Julien Vermillard <jv...@archean.fr> on 2008/02/05 09:25:09 UTC

NioProcessor select(..) question

In NioProcessor .java you got the following select implementation :

@Override
protected boolean select(int timeout) throws Exception {
   return selector.select(1000) > 0;
}

The hard-coded 1 sec value smell fishy, it's normal ? if so I think
I'll place a comment for indicate it's not a mistake.

Julien

Re: NioProcessor select(..) question

Posted by "이희승 (Trustin Lee)" <tr...@gmail.com>.
The 1 second here is to detect idle sessions, because the granularity of
idle time is 1 second for now.  We could change that though.

2008-02-05 (화), 09:25 +0100, Julien Vermillard 쓰시길:
> In NioProcessor .java you got the following select implementation :
> 
> @Override
> protected boolean select(int timeout) throws Exception {
>    return selector.select(1000) > 0;
> }
> 
> The hard-coded 1 sec value smell fishy, it's normal ? if so I think
> I'll place a comment for indicate it's not a mistake.
> 
> Julien
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/