Disabling Apache Httpclient

From Eclipsepedia

Revision as of 12:07, 12 May 2011 by Slewis.composent.com (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Under some conditions, it seems that the Apache httpclient provider (which is used for p2/Eclipse update) spontaneously disconnects when retrieving files. An example is bug 344905. We're not currently sure if this is some problem with the JRE, or with Apache HttpClient, but in either case, it is possible to disable the HttpClient provider and have ECF use the JRE URLConnection-based provider instead. This is accomplished by setting this System property:

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

For example, to set this property when starting Eclipse:

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