[Releng] Remove hacks that worked around the now-fixed ECF 45 problems
diff --git a/plugins/org.eclipse.oomph.setup.core/src/org/eclipse/oomph/setup/internal/core/SetupArchiver.java b/plugins/org.eclipse.oomph.setup.core/src/org/eclipse/oomph/setup/internal/core/SetupArchiver.java
index 8544508..756b1f6 100644
--- a/plugins/org.eclipse.oomph.setup.core/src/org/eclipse/oomph/setup/internal/core/SetupArchiver.java
+++ b/plugins/org.eclipse.oomph.setup.core/src/org/eclipse/oomph/setup/internal/core/SetupArchiver.java
@@ -57,8 +57,6 @@
{
public Object start(IApplicationContext context)
{
- System.setProperty("oomph.setup.ecf.force.large.connection.pool", "true");
-
String[] arguments = (String[])context.getArguments().get(IApplicationContext.APPLICATION_ARGS);
// The default target file is the cache location of the local setup archive.
diff --git a/plugins/org.eclipse.oomph.setup.core/src/org/eclipse/oomph/setup/internal/core/util/ECFURIHandlerImpl.java b/plugins/org.eclipse.oomph.setup.core/src/org/eclipse/oomph/setup/internal/core/util/ECFURIHandlerImpl.java
index 9906dc3..4419d9d 100644
--- a/plugins/org.eclipse.oomph.setup.core/src/org/eclipse/oomph/setup/internal/core/util/ECFURIHandlerImpl.java
+++ b/plugins/org.eclipse.oomph.setup.core/src/org/eclipse/oomph/setup/internal/core/util/ECFURIHandlerImpl.java
@@ -871,10 +871,6 @@
}
applyCookieStore(connectStartEvent);
- if ("true".equals(PropertiesUtil.getProperty("oomph.setup.ecf.force.large.connection.pool", "false")))
- {
- forceLargeConnectionPool(connectStartEvent);
- }
}
else if (event instanceof IIncomingFileTransferReceiveStartEvent)
{
@@ -953,22 +949,6 @@
}
}
- private static void forceLargeConnectionPool(final IFileTransferConnectStartEvent connectStartEvent)
- {
- try
- {
- IIncomingFileTransfer fileTransfer = ObjectUtil.adapt(connectStartEvent, IIncomingFileTransfer.class);
- Object httpClient = ReflectUtil.getValue("httpClient", fileTransfer);
- Object connManager = ReflectUtil.getValue("connManager", httpClient);
- Object pool = ReflectUtil.getValue("pool", connManager);
- ReflectUtil.invokeMethod(ReflectUtil.getMethod(pool, "setDefaultMaxPerRoute", int.class), pool, 1000);
- ReflectUtil.invokeMethod(ReflectUtil.getMethod(pool, "setMaxTotal", int.class), pool, 10000);
- }
- catch (Throwable throwable)
- {
- }
- }
-
@SuppressWarnings("restriction")
private static void applyCookieStore(final IFileTransferConnectStartEvent connectStartEvent)
{