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