Skip to content

Commit 93e5ad9

Browse files
author
Stephane Landelle
committed
Properly initialize AsyncHttpClientConfigBean.ioThreadMultiplier
Otherwise, Netty provider will crash as worker count will be 0
1 parent 078fd37 commit 93e5ad9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/ning/http/client/AsyncHttpClientConfigBean.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ void configureDefaults() {
5454
maxDefaultRedirects = Integer.getInteger(ASYNC_CLIENT + "defaultMaxRedirects", 5);
5555
compressionEnabled = Boolean.getBoolean(ASYNC_CLIENT + "compressionEnabled");
5656
userAgent = System.getProperty(ASYNC_CLIENT + "userAgent", "NING/1.0");
57+
ioThreadMultiplier = Integer.getInteger(ASYNC_CLIENT + "ioThreadMultiplier", 8);
5758

5859
boolean useProxySelector = Boolean.getBoolean(ASYNC_CLIENT + "useProxySelector");
5960
boolean useProxyProperties = Boolean.getBoolean(ASYNC_CLIENT + "useProxyProperties");

0 commit comments

Comments
 (0)