Skip to content

Commit 2568358

Browse files
committed
optimize
1 parent a3982f8 commit 2568358

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

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

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

0 commit comments

Comments
 (0)