Bug #525

Updated by Matthieu Decorde over 5 years ago

During TXM startup, the splash screen is frozen for X minutes.
See attached log file for stacktraces.

h3. Solution1: Change the timeout length.

The timeout parameter is stored in a HttpParams and read with
PlainSocketFactory.connectSocket :
int timeout = HttpConnectionParams.getConnectionTimeout(params);
Using pref name :
public static final String CONNECTION_TIMEOUT = "http.connection.timeout";

To change the behavior, ones need to modify this global variable

h3. Solution 2: set native mode

We also need to try to define the default "Network connection" preference to "Native". A link : http://eclipsesource.com/blogs/2012/06/01/eclipse-proxy-and-p2/
Or to it programmaticaly:
* Activates the proxy service and sets the network connection active provider as native.
private void activateProxyService() {
Bundle bundle = Platform.getBundle("org.eclipse.ui.ide"); //$NON-NLS-1$
IProxyService proxyService = null;
if (bundle != null) {
ServiceReference ref = bundle.getBundleContext().getServiceReference(IProxyService.class.getName());
if (ref != null)
proxyService = bundle.getBundleContext().getService(ref);
if (proxyService == null) {
Log.warning("Proxy service could not be found."); //$NON-NLS-1$
// Set the network connection active provider as native
else {

The native OS proxy detection may be done by adding some native packages linked to org.eclipse.core.net for each target platform (eg. org.eclipse.core.net.win32.x86_64)

h3. Solution 3:
* something is trying to use the network before the proxy is set
** like the automatic update: #1036

h4. Solution 4

Add the following run arguments to the product configuration: