From 7d44ab689e88ced52c0645c4083732090e56e6d0 Mon Sep 17 00:00:00 2001 From: Gerrit Gogel Date: Thu, 28 Jan 2021 19:42:17 +0100 Subject: [PATCH] use udp instead of tcp for socat --- seafile-server/Dockerfile | 2 +- seafile-server/scripts/start.sh | 2 +- seahub/scripts/start.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/seafile-server/Dockerfile b/seafile-server/Dockerfile index 198d8fc..a5f2e19 100644 --- a/seafile-server/Dockerfile +++ b/seafile-server/Dockerfile @@ -38,6 +38,6 @@ ln -sf /dev/stdout /opt/seafile/logs/seafile.log &&\ ln -sf /dev/stdout /opt/seafile/logs/controller.log &&\ ln -sf /dev/stdout /opt/seafile/logs/ccnet.log -EXPOSE 8080 8082 8001 +EXPOSE 8080 8082 8001/UDP CMD ["/scripts/start.sh"] diff --git a/seafile-server/scripts/start.sh b/seafile-server/scripts/start.sh index c8d07d0..8212c36 100644 --- a/seafile-server/scripts/start.sh +++ b/seafile-server/scripts/start.sh @@ -21,7 +21,7 @@ function start_socat { while [ ! -S /opt/seafile/seafile-server-latest/runtime/seafile.sock ]; do sleep 1 done - socat -d -d TCP-LISTEN:8001,fork,reuseaddr UNIX:/opt/seafile/seafile-server-latest/runtime/seafile.sock,forever + socat -d -d UDP-LISTEN:8001,fork,reuseaddr UNIX:/opt/seafile/seafile-server-latest/runtime/seafile.sock,forever } function stop_socat { diff --git a/seahub/scripts/start.sh b/seahub/scripts/start.sh index e191a4d..ac8524b 100644 --- a/seahub/scripts/start.sh +++ b/seahub/scripts/start.sh @@ -10,7 +10,7 @@ function start_seahub { function start_socat { 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,keepidle=10,keepintvl=10,keepcnt=2 + socat -d -d UNIX-LISTEN:/opt/seafile/seafile-server-latest/runtime/seafile.sock,fork UDP:seafile-server:8001 } function keep_running {