예제 #1
0
 static {
   // // 使用默认的 cacheThreadPool
   client.setTimeout(150000);
   client.setConnectTimeout(150000);
   client.setMaxConnections(20);
   client.setResponseTimeout(200000);
 }
예제 #2
0
 {
   HTTP_CLIENT.setMaxConnections(4);
   HTTP_CLIENT.setMaxRetriesAndTimeout(3, 10);
 }