From 4d88346ab0b77eaadcdaad3605d5a378aea01dc0 Mon Sep 17 00:00:00 2001 From: Ycarus Date: Tue, 16 Apr 2019 22:22:14 +0200 Subject: [PATCH] Increase SS timeout --- .../files/etc/uci-defaults/1930-omr-shadowsocks | 8 ++++---- shadowsocks-libev/files/shadowsocks-libev.config | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/openmptcprouter/files/etc/uci-defaults/1930-omr-shadowsocks b/openmptcprouter/files/etc/uci-defaults/1930-omr-shadowsocks index 3cfc95b55..106eb827a 100755 --- a/openmptcprouter/files/etc/uci-defaults/1930-omr-shadowsocks +++ b/openmptcprouter/files/etc/uci-defaults/1930-omr-shadowsocks @@ -11,7 +11,7 @@ if [ "$(uci -q get openmptcprouter.latest_versions)" = "" ]; then set shadowsocks-libev.hi$c.local_address="0.0.0.0" set shadowsocks-libev.hi$c.local_port=1100 set shadowsocks-libev.hi$c.mode=tcp_and_udp - set shadowsocks-libev.hi$c.timeout=600 + set shadowsocks-libev.hi$c.timeout=1000 set shadowsocks-libev.hi$c.fast_open=1 set shadowsocks-libev.hi$c.reuse_port=1 set shadowsocks-libev.hi$c.syslog=1 @@ -24,14 +24,14 @@ if [ "$(uci -q get openmptcprouter.latest_versions)" = "" ]; then fi fi - if [ "$(uci -q get shadowsocks-libev.hi.timeout)" != "600" ]; then + if [ "$(uci -q get shadowsocks-libev.hi.timeout)" != "1000" ]; then uci -q batch <<-EOF > /dev/null - set shadowsocks-libev.hi.timeout=600 + set shadowsocks-libev.hi.timeout=1000 commit shadowsocks-libev EOF for c in $(seq 2 $NBCPU); do uci -q batch <<-EOF > /dev/null - set shadowsocks-libev.hi$c.timeout=600 + set shadowsocks-libev.hi$c.timeout=1000 commit shadowsocks-libev EOF done diff --git a/shadowsocks-libev/files/shadowsocks-libev.config b/shadowsocks-libev/files/shadowsocks-libev.config index ddb587807..5d1abca5b 100644 --- a/shadowsocks-libev/files/shadowsocks-libev.config +++ b/shadowsocks-libev/files/shadowsocks-libev.config @@ -3,7 +3,7 @@ config ss_redir hi option local_address '::' option local_port '1100' option mode 'tcp_and_udp' - option timeout '600' + option timeout '1000' option fast_open 1 option verbose 0 option syslog 1 @@ -17,7 +17,7 @@ config ss_redir hi2 option local_address '0.0.0.0' option local_port '1100' option mode 'tcp_and_udp' - option timeout '600' + option timeout '1000' option fast_open 1 option verbose 0 option syslog 1