dev@grizzly.java.net

Custom ThreadPoolConfig is not applied

From: Bongjae Chang <bongjae.chang_at_gmail.com>
Date: Thu, 01 Dec 2011 13:56:43 +0900

Hi,

When I set custom thread pool config as the following,

---
transport.setWorkerThreadPoolConfig( myThreadPoolConfig );
transport.setIOStrategy(Š);
---
Only default thread pool config would be set.
This issue is related to the following change in AbstractTransport.java.
---
Rev. 446b31b99adff917600ecf225dd6115859d47101
"Update where the default worker thread pool configuration is obtained from.
Previously, it was only done in the builderŠ"
---
When I read the commit log, it seems to intend this behavior. Right?
Perhaps, should a user always set IOStrategy first in order to use the
custom thread pool config?
Maybe it will work fine if I change the setting order like the following.
---
transport.setIOStrategy(Š);
transport.setWorkerThreadPoolConfig( myThreadPoolConfig );
---
Thanks.
Regards,
Bongjae Chang