Revision: 15217
http://gate.svn.sourceforge.net/gate/?rev=15217&view=rev
Author: markagreenwood
Date: 2012-01-25 17:32:45 +0000 (Wed, 25 Jan 2012)
Log Message:
-----------
added some timeouts to stop a stalled download killing GATE
Modified Paths:
--------------
gate/trunk/src/gate/gui/creole/manager/PluginUpdateManager.java
Modified: gate/trunk/src/gate/gui/creole/manager/PluginUpdateManager.java
===================================================================
--- gate/trunk/src/gate/gui/creole/manager/PluginUpdateManager.java
2012-01-25 14:57:30 UTC (rev 15216)
+++ gate/trunk/src/gate/gui/creole/manager/PluginUpdateManager.java
2012-01-25 17:32:45 UTC (rev 15217)
@@ -964,6 +964,8 @@
try {
// get a connection to the URL
URLConnection conn = url.openConnection();
+ conn.setConnectTimeout(10000);
+ conn.setReadTimeout(10000);
// use this to configure the progress info
int expectedSize = conn.getContentLength();
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs