From 06742af855ad754428809f7d229cd01fb3bbc36c Mon Sep 17 00:00:00 2001 From: Gerrit Gogel Date: Mon, 25 Jan 2021 15:10:54 +0100 Subject: [PATCH] configure tcp keepalive on seahub side with intervall of 10s --- seafile-server/scripts/start.sh | 2 +- seahub/scripts/start.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/seafile-server/scripts/start.sh b/seafile-server/scripts/start.sh index 1c71e90..c9c8a8b 100644 --- a/seafile-server/scripts/start.sh +++ b/seafile-server/scripts/start.sh @@ -9,4 +9,4 @@ while [ ! -S /opt/seafile/seafile-server-latest/runtime/seafile.sock ]; do sleep 1 done -socat -v -d -d -d -d TCP-LISTEN:8001,fork,reuseaddr,keepalive,keepidle=10,keepintvl=10,keepcnt=2 UNIX:/opt/seafile/seafile-server-latest/runtime/seafile.sock,forever \ No newline at end of file +socat -v -d -d -d -d TCP-LISTEN:8001,fork,reuseaddr UNIX:/opt/seafile/seafile-server-latest/runtime/seafile.sock,forever \ No newline at end of file diff --git a/seahub/scripts/start.sh b/seahub/scripts/start.sh index f60e0e0..b5d2d62 100644 --- a/seahub/scripts/start.sh +++ b/seahub/scripts/start.sh @@ -3,7 +3,7 @@ /scripts/create_data_links.sh mkdir -p /opt/seafile/seafile-server-latest/runtime -socat -v -d -d -d -d UNIX-LISTEN:/opt/seafile/seafile-server-latest/runtime/seafile.sock,fork TCP:seafile-server:8001,forever & +socat -v -d -d -d -d UNIX-LISTEN:/opt/seafile/seafile-server-latest/runtime/seafile.sock,fork TCP:seafile-server:8001,forever,keepalive,keepidle=10,keepintvl=10,keepcnt=2 & python3 /opt/seafile/seafile-server-latest/seahub/manage.py runserver 0.0.0.0:8000