From 2c2ff2965d8be3c6d78d0b33106bf77970e380ab Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sun, 19 Aug 2012 03:01:38 +0000 Subject: [PATCH] * increase default connection timeouts to 10s/60s --- installer/deb/filebot.sh | 2 +- installer/ipkg/filebot.sh | 2 +- installer/msi/filebot.launcher.l4j.ini | 4 ++-- installer/msi/filebot.platform.launcher.l4j.ini | 4 ++-- installer/portable/FileBot.l4j.ini | 4 ++-- installer/portable/filebot.sh | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/installer/deb/filebot.sh b/installer/deb/filebot.sh index a8361538..0889e573 100644 --- a/installer/deb/filebot.sh +++ b/installer/deb/filebot.sh @@ -1,2 +1,2 @@ #!/bin/bash -java -Xmx256m -Dapplication.deployment=deb -Dapplication.dir=$HOME/.filebot -Djava.io.tmpdir=$HOME/.filebot/temp -Djna.library.path=/usr/share/filebot -Djava.library.path=/usr/share/filebot -Dsun.net.client.defaultConnectTimeout=5000 -Dsun.net.client.defaultReadTimeout=25000 -jar /usr/share/filebot/FileBot.jar "$@" +java -Xmx256m -Dapplication.deployment=deb -Dapplication.dir=$HOME/.filebot -Djava.io.tmpdir=$HOME/.filebot/temp -Djna.library.path=/usr/share/filebot -Djava.library.path=/usr/share/filebot -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -jar /usr/share/filebot/FileBot.jar "$@" diff --git a/installer/ipkg/filebot.sh b/installer/ipkg/filebot.sh index 83afb9c5..6eb6e0c5 100644 --- a/installer/ipkg/filebot.sh +++ b/installer/ipkg/filebot.sh @@ -1,2 +1,2 @@ #!/bin/bash -java -Dapplication.deployment=ipkg -Dapplication.dir=$HOME/.filebot -Djava.io.tmpdir=$HOME/.filebot/temp -Djna.library.path=/usr/share/filebot -Djava.library.path=/usr/share/filebot -Dsun.net.client.defaultConnectTimeout=5000 -Dsun.net.client.defaultReadTimeout=25000 -jar /usr/share/filebot/FileBot.jar "$@" +java -Dapplication.deployment=ipkg -Dapplication.dir=$HOME/.filebot -Djava.io.tmpdir=$HOME/.filebot/temp -Djna.library.path=/usr/share/filebot -Djava.library.path=/usr/share/filebot -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -jar /usr/share/filebot/FileBot.jar "$@" diff --git a/installer/msi/filebot.launcher.l4j.ini b/installer/msi/filebot.launcher.l4j.ini index 4f7b2524..e1b46dce 100644 --- a/installer/msi/filebot.launcher.l4j.ini +++ b/installer/msi/filebot.launcher.l4j.ini @@ -16,8 +16,8 @@ -Xmx256m # http connection timeouts --Dsun.net.client.defaultConnectTimeout=5000 --Dsun.net.client.defaultReadTimeout=25000 +-Dsun.net.client.defaultConnectTimeout=10000 +-Dsun.net.client.defaultReadTimeout=60000 # look for native libs here -Djna.library.path="%EXEDIR%" diff --git a/installer/msi/filebot.platform.launcher.l4j.ini b/installer/msi/filebot.platform.launcher.l4j.ini index 308c5ecf..c4913a42 100644 --- a/installer/msi/filebot.platform.launcher.l4j.ini +++ b/installer/msi/filebot.platform.launcher.l4j.ini @@ -21,8 +21,8 @@ -Xmx512m # http connection timeouts --Dsun.net.client.defaultConnectTimeout=5000 --Dsun.net.client.defaultReadTimeout=25000 +-Dsun.net.client.defaultConnectTimeout=10000 +-Dsun.net.client.defaultReadTimeout=60000 # look for native libs here -Djna.library.path="%EXEDIR%" diff --git a/installer/portable/FileBot.l4j.ini b/installer/portable/FileBot.l4j.ini index eb1ffed6..d6de439c 100644 --- a/installer/portable/FileBot.l4j.ini +++ b/installer/portable/FileBot.l4j.ini @@ -17,8 +17,8 @@ -Xmx256m # http connection timeouts --Dsun.net.client.defaultConnectTimeout=5000 --Dsun.net.client.defaultReadTimeout=25000 +-Dsun.net.client.defaultConnectTimeout=10000 +-Dsun.net.client.defaultReadTimeout=60000 # put all temporary files here -Djava.io.tmpdir="%EXEDIR%/temp" diff --git a/installer/portable/filebot.sh b/installer/portable/filebot.sh index e3b6cfc9..0c5f2fc9 100644 --- a/installer/portable/filebot.sh +++ b/installer/portable/filebot.sh @@ -3,4 +3,4 @@ SOURCE="${BASH_SOURCE[0]}" while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done dir_bin="$( cd -P "$( dirname "$SOURCE" )" && pwd )" -java -Xmx256m -Dapplication.deployment=portable "-Dapplication.dir=$dir_bin" "-Djava.io.tmpdir=$dir_bin/temp" "-Duser.home=$dir_bin" "-Djna.library.path=$dir_bin" "-Djava.library.path=$dir_bin" -Dsun.net.client.defaultConnectTimeout=5000 -Dsun.net.client.defaultReadTimeout=25000 -Djava.util.prefs.PreferencesFactory=net.sourceforge.tuned.prefs.FilePreferencesFactory -Dnet.sourceforge.tuned.prefs.file=prefs.properties -jar "$dir_bin/FileBot.jar" "$@" \ No newline at end of file +java -Xmx256m -Dapplication.deployment=portable "-Dapplication.dir=$dir_bin" "-Djava.io.tmpdir=$dir_bin/temp" "-Duser.home=$dir_bin" "-Djna.library.path=$dir_bin" "-Djava.library.path=$dir_bin" -Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=60000 -Djava.util.prefs.PreferencesFactory=net.sourceforge.tuned.prefs.FilePreferencesFactory -Dnet.sourceforge.tuned.prefs.file=prefs.properties -jar "$dir_bin/FileBot.jar" "$@" \ No newline at end of file