diff options
author | wbauer <wbauer@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2008-09-25 07:29:47 +0000 |
---|---|---|
committer | wbauer <wbauer@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2008-09-25 07:29:47 +0000 |
commit | e21dd5249d5fa19c5619847922cf8cdea95e3145 (patch) | |
tree | 00756b302d7fe37a4912ff5da812e25e2a781d9b /BKULocal/src/main | |
parent | 55302f2bbe65d28a21d61822f3c316a7fafd1eff (diff) | |
download | mocca-e21dd5249d5fa19c5619847922cf8cdea95e3145.tar.gz mocca-e21dd5249d5fa19c5619847922cf8cdea95e3145.tar.bz2 mocca-e21dd5249d5fa19c5619847922cf8cdea95e3145.zip |
improved robustness of http binding processor
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@70 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'BKULocal/src/main')
-rw-r--r-- | BKULocal/src/main/java/at/gv/egiz/bku/local/conf/SpringConfigurator.java | 6 | ||||
-rw-r--r-- | BKULocal/src/main/resources/at/gv/egiz/bku/local/conf/defaultConf.properties | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/BKULocal/src/main/java/at/gv/egiz/bku/local/conf/SpringConfigurator.java b/BKULocal/src/main/java/at/gv/egiz/bku/local/conf/SpringConfigurator.java index 43dbf745..46668667 100644 --- a/BKULocal/src/main/java/at/gv/egiz/bku/local/conf/SpringConfigurator.java +++ b/BKULocal/src/main/java/at/gv/egiz/bku/local/conf/SpringConfigurator.java @@ -128,10 +128,14 @@ public class SpringConfigurator extends Configurator implements if ((proxy == null) || (proxy.equals(""))) {
log.info("No proxy configured");
} else {
- log.info("Setting proxy to: "+proxy+":"+portString);
+ log.info("Setting proxy to: " + proxy + ":" + portString);
System.setProperty("proxyHost", proxy);
System.setProperty("proxyPort", portString);
}
+ String timeout = getProperty("DefaultSocketTimeout");
+ if ((timeout != null) && (!timeout.equals(""))) {
+ System.setProperty("sun.net.client.defaultConnectTimeout", timeout);
+ }
}
private Set<TrustAnchor> getCACerts() throws IOException,
diff --git a/BKULocal/src/main/resources/at/gv/egiz/bku/local/conf/defaultConf.properties b/BKULocal/src/main/resources/at/gv/egiz/bku/local/conf/defaultConf.properties index 6d59ec21..29bdd1ed 100644 --- a/BKULocal/src/main/resources/at/gv/egiz/bku/local/conf/defaultConf.properties +++ b/BKULocal/src/main/resources/at/gv/egiz/bku/local/conf/defaultConf.properties @@ -54,6 +54,7 @@ ValidateHashDataInputs=true HTTPProxyHost=
HTTPProxyPort=
+DefaultSocketTimeout=200
|