标签:eclipse install plugin read time out
issue:I have slow internet connection and I cannot install any plugin, because Eclipse‘s Update manager throws me exception:
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 appropriate 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
本文出自 “六度空间” 博客,请务必保留此出处http://jasonwalker.blog.51cto.com/7020143/1416712
How to change value of Read time out of Eclipse Update Manager?,布布扣,bubuko.com
How to change value of Read time out of Eclipse Update Manager?
标签:eclipse install plugin read time out
原文地址:http://jasonwalker.blog.51cto.com/7020143/1416712