mirror of https://github.com/apache/activemq.git
Should have any effect either way given the construtor args but user reports that its an issue in some environments. git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1141331 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4fcc1f7192
commit
0bed411301
|
@ -376,6 +376,8 @@ public class InactivityMonitor extends TransportFilter {
|
||||||
};
|
};
|
||||||
|
|
||||||
private ThreadPoolExecutor createExecutor() {
|
private ThreadPoolExecutor createExecutor() {
|
||||||
return new ThreadPoolExecutor(0, Integer.MAX_VALUE, 10, TimeUnit.SECONDS, new SynchronousQueue<Runnable>(), factory);
|
ThreadPoolExecutor exec = new ThreadPoolExecutor(0, Integer.MAX_VALUE, 10, TimeUnit.SECONDS, new SynchronousQueue<Runnable>(), factory);
|
||||||
|
exec.allowCoreThreadTimeOut(true);
|
||||||
|
return exec;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue