remove keepalive on seahub side, add seafile-server tcp keepalive

This commit is contained in:
Gerrit Gogel 2021-01-25 13:40:37 +01:00
parent 3ac249a4f5
commit 01a9e9d05b
2 changed files with 2 additions and 2 deletions

View file

@ -9,4 +9,4 @@ while [ ! -S /opt/seafile/seafile-server-latest/runtime/seafile.sock ]; do
sleep 1 sleep 1
done done
socat -d -d TCP-LISTEN:8001,fork,reuseaddr UNIX:/opt/seafile/seafile-server-latest/runtime/seafile.sock,forever,keepalive 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

View file

@ -3,7 +3,7 @@
/scripts/create_data_links.sh /scripts/create_data_links.sh
mkdir -p /opt/seafile/seafile-server-latest/runtime mkdir -p /opt/seafile/seafile-server-latest/runtime
socat -d -d UNIX-LISTEN:/opt/seafile/seafile-server-latest/runtime/seafile.sock,fork TCP:seafile-server:8001,forever,keepalive & socat -v -d -d -d -d UNIX-LISTEN:/opt/seafile/seafile-server-latest/runtime/seafile.sock,fork TCP:seafile-server:8001,forever &
python3 /opt/seafile/seafile-server-latest/seahub/manage.py runserver 0.0.0.0:8000 python3 /opt/seafile/seafile-server-latest/seahub/manage.py runserver 0.0.0.0:8000