How to change value of the Read time out of Eclipse Update Manager?

Source: Internet
Author: User

ISSUE:I has slow internet connection and I cannot install any plugin, because Eclipse ' s Update manager throws me exceptio N:

Ava.net.SocketTimeoutException: Read timed out
At java.net.SocketInputStream.socketRead0 (Native Method)
At Java.net.SocketInputStream.read (Unknown Source)
At Java.io.BufferedInputStream.read1 (Unknown Source)
At Java.io.BufferedInputStream.read (Unknown Source)
At Org.apache.commons.httpclient.ContentLengthInputStream.read (contentlengthinputstream.java:170)
At Java.io.FilterInputStream.read (Unknown Source)
At Org.apache.commons.httpclient.AutoCloseInputStream.read (autocloseinputstream.java:108)
At Java.io.FilterInputStream.read (Unknown Source)
At Org.apache.commons.httpclient.AutoCloseInputStream.read (autocloseinputstream.java:127)

At ...


Solution 1:
I got the error a lot with version 3.6, but adding the following line to the Eclipse.ini helped me a lot:
-dsun.net.client.defaultconnecttimeout=10000
-dsun.net.client.defaultreadtimeout=30000

Add it right after the line With-vmargs

Solution 2:
As Frank mentioned you can set the timeout options in the Eclipse.ini, here's the.
' Use-dpropname=propvalue as a VM argument to the Java VM, set the desired property in the Config.ini file in the Appropri Ate Configuration area '
I set the following to get round my timeout issue:

-dorg.eclipse.ecf.provider.filetransfer.retrieve.closetimeout=3000
-dorg.eclipse.ecf.provider.filetransfer.retrieve.readtimeout=3000


Refer to link How-to-change-value-of-read-timeout-of-eclipses-update-manager


This article is from the "six-degree space" blog, so be sure to keep this source http://jasonwalker.blog.51cto.com/7020143/1416712

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.