Skip to content

Conversation

waleed-dawood
Copy link
Contributor

Thread factory provided by the client should be used if not null, as being done in ChannelManager


private Timer newNettyTimer(AsyncHttpClientConfig config) {
ThreadFactory threadFactory = new DefaultThreadFactory(config.getThreadPoolName() + "-timer");
ThreadFactory threadFactory = config.getThreadFactory() != null ? config.getThreadFactory() : new DefaultThreadFactory(config.getThreadPoolName());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please restore the current behavior for fallback, with "-timer" prefix.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@slandelle slandelle merged commit f723dc6 into AsyncHttpClient:master May 8, 2018
@slandelle slandelle added this to the 2.4.8 milestone May 8, 2018
@slandelle
Copy link
Contributor

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants