Skip to content

Commit a3982f8

Browse files
committed
enlarge
1 parent 158d07c commit a3982f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/qiniu/http/Client.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ public final class Client {
2323

2424
public Client() {
2525
Dispatcher dispatcher = new Dispatcher();
26-
dispatcher.setMaxRequests(64);
27-
dispatcher.setMaxRequestsPerHost(64);
28-
ConnectionPool connectionPool = new ConnectionPool(16, 5 * 60 * 1000);
26+
dispatcher.setMaxRequests(1024);
27+
dispatcher.setMaxRequestsPerHost(1024);
28+
ConnectionPool connectionPool = new ConnectionPool(32, 5 * 60 * 1000);
2929
httpClient = new OkHttpClient();
3030
httpClient.setDispatcher(dispatcher);
3131
httpClient.setConnectionPool(connectionPool);

0 commit comments

Comments
 (0)