зеркало из https://github.com/mozilla/pjs.git
Bug 747099 - Don't expire idle connections in Sync's connection pool. r=liuche, a=blocking-fennec, mobile-only
This commit is contained in:
Родитель
e0c3597e64
Коммит
92b496304c
|
@ -12,7 +12,6 @@ import java.net.URISyntaxException;
|
|||
import java.security.KeyManagementException;
|
||||
import java.security.NoSuchAlgorithmException;
|
||||
import java.security.SecureRandom;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import javax.net.ssl.SSLContext;
|
||||
|
||||
|
@ -61,8 +60,6 @@ public class BaseResource implements Resource {
|
|||
private static final int MAX_TOTAL_CONNECTIONS = 20;
|
||||
private static final int MAX_CONNECTIONS_PER_ROUTE = 10;
|
||||
|
||||
private static final long MAX_IDLE_TIME_SECONDS = 30;
|
||||
|
||||
public static boolean rewriteLocalhost = true;
|
||||
|
||||
private static final String LOG_TAG = "BaseResource";
|
||||
|
@ -224,9 +221,6 @@ public class BaseResource implements Resource {
|
|||
}
|
||||
Logger.trace(LOG_TAG, "Closing expired connections.");
|
||||
connectionManager.closeExpiredConnections();
|
||||
|
||||
Logger.trace(LOG_TAG, "Closing idle connections.");
|
||||
connectionManager.closeIdleConnections(MAX_IDLE_TIME_SECONDS, TimeUnit.SECONDS);
|
||||
}
|
||||
|
||||
public static void shutdownConnectionManager() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче