summaryrefslogtreecommitdiff
path: root/kvmd/apps/__init__.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-07-23 10:38:45 +0300
committerDevaev Maxim <[email protected]>2020-07-23 10:38:45 +0300
commitd338bf219c22020e6791a30e210299138d45926c (patch)
tree312818c6162095890200a35aef4a4a43e3a4a4e3 /kvmd/apps/__init__.py
parent37c2f9391c4129114702f653270049d0ad67bc90 (diff)
tune vnc socket
Diffstat (limited to 'kvmd/apps/__init__.py')
-rw-r--r--kvmd/apps/__init__.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py
index a4264faf..64127355 100644
--- a/kvmd/apps/__init__.py
+++ b/kvmd/apps/__init__.py
@@ -356,6 +356,15 @@ def _get_config_scheme() -> Dict:
"host": Option("::", type=valid_ip_or_host),
"port": Option(5900, type=valid_port),
"max_clients": Option(10, type=valid_int_f1),
+
+ "no_delay": Option(True, type=valid_bool),
+ "keepalive": {
+ "enabled": Option(True, type=valid_bool, unpack_as="keepalive_enabled"),
+ "idle": Option(10, type=(lambda arg: valid_number(arg, min=1, max=3600)), unpack_as="keepalive_idle"),
+ "interval": Option(3, type=(lambda arg: valid_number(arg, min=1, max=60)), unpack_as="keepalive_interval"),
+ "count": Option(3, type=(lambda arg: valid_number(arg, min=1, max=10)), unpack_as="keepalive_count"),
+ },
+
"tls": {
"ciphers": Option("ALL:@SECLEVEL=0", type=valid_ssl_ciphers),
"timeout": Option(5.0, type=valid_float_f01),