Bug #525

Updated by Matthieu Decorde over 6 years ago

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

*Hypothesis1*: 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

*Hypothesis2*: 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 {