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

來源:互聯網
上載者:User

標籤: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

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.