We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 158d07c commit a3982f8Copy full SHA for a3982f8
src/main/java/com/qiniu/http/Client.java
@@ -23,9 +23,9 @@ public final class Client {
23
24
public Client() {
25
Dispatcher dispatcher = new Dispatcher();
26
- dispatcher.setMaxRequests(64);
27
- dispatcher.setMaxRequestsPerHost(64);
28
- ConnectionPool connectionPool = new ConnectionPool(16, 5 * 60 * 1000);
+ dispatcher.setMaxRequests(1024);
+ dispatcher.setMaxRequestsPerHost(1024);
+ ConnectionPool connectionPool = new ConnectionPool(32, 5 * 60 * 1000);
29
httpClient = new OkHttpClient();
30
httpClient.setDispatcher(dispatcher);
31
httpClient.setConnectionPool(connectionPool);
0 commit comments