dev@grizzly.java.net

Re: About SelectorThread's readThreadsCount

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Tue, 16 Jun 2009 10:49:38 -0400

Salut,

Bongjae Chang wrote:
> Hi,
>
> At rev.3323, default readThreadsCount set to be -1 and
> autoConfigureCore() is enabled when readThreadsCount is only equal to -1.
>
> But In SelectorThread's readThreadsCount still is 0.
>
> So maybe I think that the following code could be not expected.
>
> In SelectorThread.java
> ---
> ...
> protected int readThreadsCount = 0;
> ...
> protected void initController() {
> ...
> if(*readThreadsCount > controller.getReadThreadsCount()*) {
> controller.setReadThreadsCount(readThreadsCount);
> } else {
> readThreadsCount = controller.getReadThreadsCount();
> }
> }
> ---
>
> I think that SelectorThread's readThreadsCount should set to be -1 as
> well, shouldn't it?

Agree. Thanks for catching this!

-- Jeanfrancois

>
> --
> Bongjae Chang
>
>