File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
api/src/main/java/org/asynchttpclient Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 35
35
import java .util .concurrent .Executors ;
36
36
import java .util .concurrent .ScheduledExecutorService ;
37
37
import java .util .concurrent .ThreadFactory ;
38
+ import java .util .concurrent .atomic .AtomicInteger ;
38
39
39
40
/**
40
41
* Configuration class to use with a {@link AsyncHttpClient}. System property can be also used to configure this
@@ -1218,9 +1219,10 @@ public Thread newThread(Runnable r) {
1218
1219
if (applicationThreadPool == null ) {
1219
1220
applicationThreadPool =
1220
1221
Executors .newCachedThreadPool (new ThreadFactory () {
1222
+ final AtomicInteger counter = new AtomicInteger ();
1221
1223
public Thread newThread (Runnable r ) {
1222
1224
Thread t = new Thread (r ,
1223
- "AsyncHttpClient-Callback" );
1225
+ "AsyncHttpClient-Callback-" + counter . incrementAndGet () );
1224
1226
t .setDaemon (true );
1225
1227
return t ;
1226
1228
}
You can’t perform that action at this time.
0 commit comments