本文介绍了如何更改Eclipse的Update Manager的“读取超时”值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何更改Eclipse更新管理器的读取超时的值?

How to change value of 'Read timeout' of Eclipse's Update Manager?

我的互联网连接速度很慢,我无法安装任何插件,因为Eclipse的更新管理器会抛出我例外:

I have slow internet connection and I cannot install any plugin, because Eclipse's Update manager throws me exception:

Transfer Exception

java.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 org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer$1.performFileTransfer(AbstractRetrieveFileTransfer.java:140)
at org.eclipse.ecf.filetransfer.FileTransferJob.run(FileTransferJob.java:73)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


推荐答案

p>正如Frank所提到的,您可以在eclipse.ini中设置超时选项,这里是。

As Frank mentioned you can set the timeout options in the eclipse.ini, here's the documentation.

将-DpropName = propValue用作Java VM的VM参数,在适当的配置区域config中设置所需的属性

"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

这篇关于如何更改Eclipse的Update Manager的“读取超时”值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 19:48