Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Disabling Apache Httpclient"

m (Slewis.composent.com moved page Disabling Apache Httpclient45 to Disabling Apache Httpclient over redirect: Generalized)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
Under some conditions, it seems that the Apache httpclient4 provider (which is used by default for p2/Eclipse update) spontaneously disconnects when retrieving files. 
+
==Disabling Httpclient5==
  
An example is [https://bugs.eclipse.org/bugs/show_bug.cgi?id=344905 bug 344905].  Another example for some of the environments associated with [https://bugs.eclipse.org/bugs/show_bug.cgi?id=422665 bug 422665].
+
The new default filetransfer provider (httclient5) may be changed from httpclient5 to the URLConnection provider (using the underlying JVM's impl of URLConnection) by setting the following system property upon eclipse (or other app) startup:
 
+
 
+
The default filetransfer provider may be changed from httpclient4 to the JRE URLConnection provider by setting the following system property upon eclipse (or other app) startup:
+
  
 
<pre>
 
<pre>
org.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4
+
org.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient5
 
</pre>
 
</pre>
  
Line 13: Line 10:
  
 
<pre>
 
<pre>
eclipse -vmargs -Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4
+
eclipse -vmargs -Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient5
 
</pre>
 
</pre>
  
This will disable the Apache HttpClient4 provider, and force using the JRE URLConnection provider. 
+
This will disable the Apache HttpClient5 provider, and force using the URLConnection provider.
 
+
In some proxy environments this will allow the downloads to succeed by using the URLConnection provider rather than the HttpClient4 provider.
+

Latest revision as of 16:43, 8 November 2021

Disabling Httpclient5

The new default filetransfer provider (httclient5) may be changed from httpclient5 to the URLConnection provider (using the underlying JVM's impl of URLConnection) by setting the following system property upon eclipse (or other app) startup:

org.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient5

For example, to set this property when starting Eclipse:

eclipse -vmargs -Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient5

This will disable the Apache HttpClient5 provider, and force using the URLConnection provider.

Copyright © Eclipse Foundation, Inc. All Rights Reserved.