You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Pankaj Kumar (JIRA)" <ji...@apache.org> on 2015/06/22 13:38:00 UTC
[jira] [Commented] (THRIFT-3197) keepAliveTime is hard coded as 60
sec in TThreadPoolServer
[ https://issues.apache.org/jira/browse/THRIFT-3197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14595803#comment-14595803 ]
Pankaj Kumar commented on THRIFT-3197:
--------------------------------------
Attached the patch.
> keepAliveTime is hard coded as 60 sec in TThreadPoolServer
> ----------------------------------------------------------
>
> Key: THRIFT-3197
> URL: https://issues.apache.org/jira/browse/THRIFT-3197
> Project: Thrift
> Issue Type: Bug
> Reporter: Pankaj Kumar
> Attachments: THRIFT-3197.patch
>
>
> While creating ThreadPoolExecutor in TThreadPoolServer, keepAliveTime is hard coded as 60 sec.
> {code}
> private static ExecutorService createDefaultExecutorService(Args args) {
> SynchronousQueue<Runnable> executorQueue =
> new SynchronousQueue<Runnable>();
> return new ThreadPoolExecutor(args.minWorkerThreads,
> args.maxWorkerThreads,
> 60,
> TimeUnit.SECONDS,
> executorQueue);
> }
> {code}
> It should be "args.stopTimeoutVal"
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)