[X2Go-Commits] [x2goserver] 01/03: x2goserver-common/etc/x2goserver.conf: add x2gocleansessions section and agent-startup-time configurable option, to be set to the allowed time period in seconds between session creation and agent PID insertion into the database.

git-admin at x2go.org git-admin at x2go.org
Fri Feb 28 15:37:02 CET 2020


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository x2goserver.

commit ec179538f14e6094c061cf148a130e94ad818bd5
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Fri Feb 28 15:16:36 2020 +0100

    x2goserver-common/etc/x2goserver.conf: add x2gocleansessions section and agent-startup-time configurable option, to be set to the allowed time period in seconds between session creation and agent PID insertion into the database.
---
 debian/changelog                      |  4 ++++
 x2goserver-common/etc/x2goserver.conf | 15 +++++++++++++++
 2 files changed, 19 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 1c84c243..ac43b499 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -168,6 +168,10 @@ x2goserver (4.1.0.4-0x2go1.2) UNRELEASED; urgency=medium
     - x2goserver/bin/x2gopath.in: make xinerama path optional, newer releases
       don't use it any longer, so failures to find it should not result in a
       warning message.
+    - x2goserver-common/etc/x2goserver.conf: add x2gocleansessions section and
+      agent-startup-time configurable option, to be set to the allowed time
+      period in seconds between session creation and agent PID insertion into
+      the database.
   * debian/control:
     + Build-depend upon lsb-release for distro version detection.
   * debian/x2goserver.manpages:
diff --git a/x2goserver-common/etc/x2goserver.conf b/x2goserver-common/etc/x2goserver.conf
index fe20cf08..9ae77f3b 100644
--- a/x2goserver-common/etc/x2goserver.conf
+++ b/x2goserver-common/etc/x2goserver.conf
@@ -47,6 +47,21 @@ enable=no
 # variable to fully randomize the port, i.e., 30000 + random(0..32767).
 port_randomization="pure-random"
 
+[x2gocleansessions]
+# Time allowed between session creation and agent PID DB insertion in seconds.
+# If a session exceeds this time and no agent PID has been recorded, it will be
+# regarded as invalid and evicted from the database.
+# Negative values are not allowed.
+# The default is 10 seconds.
+# Lower values are explicitly NOT recommended. Correctly starting and running
+# sessions might be getting falsely evicted and session suspension, resumption
+# or termination will not work.
+# Slow machines or those with unusual setups, like NFS-based or remote cluster
+# root file systems, might need to be configured with a higher value. Setting
+# a very high value might lead to the session database piling up with invalid,
+# stale sessions.
+agent-startup-time=10
+
 [log]
 # possible levels are: emerg, alert, crit, err, warning, notice, info, debug
 loglevel=notice

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goserver.git


More information about the x2go-commits mailing list