Skip to content

Commit 07476ab

Browse files
committed
Revert fixed thread pool change. Netty provider tests fail with it in place.
1 parent 93c745c commit 07476ab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

api/src/main/java/org/asynchttpclient/AsyncHttpClientConfig.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,9 +1274,8 @@ public Thread newThread(Runnable r) {
12741274

12751275
if (applicationThreadPool == null) {
12761276
managedApplicationThreadPool = true;
1277-
int count = Runtime.getRuntime().availableProcessors();
12781277
applicationThreadPool =
1279-
Executors.newFixedThreadPool(count, new ThreadFactory() {
1278+
Executors.newCachedThreadPool(new ThreadFactory() {
12801279
final AtomicInteger counter = new AtomicInteger();
12811280
public Thread newThread(Runnable r) {
12821281
Thread t = new Thread(r,

0 commit comments

Comments
 (0)