Subject: x2gocleansessions has hardcoded sleep time

From: "Giuseppe Ragusa" <[email-masked]>
Date: Mon, 01 Mar 2021 08:56:54 +0100

Package: x2goserver
Version: 4.1.0.4
Tag: patch
Severity: wishlist

The x2gocleansessions program has a hardcoded sleep time of 2 seconds.
Several requests to make it configurable have been seen in mailing list.
In my specific case, a machine with many active sessions from AD users (SSSD on CentOS7)
experiences almost constant undesired extra load (sssd_be): the issue goes away when configuring
a 3600 seconds sleep time in /etc/x2go/x2goserver.conf by adding a section like this:

[x2gocleansessions]
sleep-time = 3600

Please find attached a git-formatted patch against latest version.
I can provide a patch for older versions (is_int missing in Utils).

Many thanks.

Best regards,
Giuseppe Ragusa