mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-05 04:41:20 +00:00
a8743c3938
Since its introduction in 2011 (particularly in commit f4324e3292
),
the option doesn't work. It just effectively disables all incoming
connections. That's because the client private data that contain the
'keepalive_supported' boolean, are initialized to zeroes so the bool is
false and the only other place where the bool is used is when checking
whether the client supports keepalive. Thus, according to the server,
no client supports keepalive.
Removing this instead of fixing it is better because a) apparently
nobody ever tried it since 2011 (4 years without one month) and b) we
cannot know whether the client supports keepalive until we get a ping or
pong keepalive packet. And that won't happen until after we dispatched
the ConnectOpen call.
Another two reasons would be c) the keepalive_required was tracked on
the server level, but keepalive_supported was in private data of the
client as well as the check that was made in the remote layer, thus
making all other instances of virNetServer miss this feature unless they
all implemented it for themselves and d) we can always add it back in
case there is a request and a use-case for it.
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
64 lines
2.3 KiB
Plaintext
64 lines
2.3 KiB
Plaintext
module Test_libvirtd =
|
|
::CONFIG::
|
|
|
|
test Libvirtd.lns get conf =
|
|
{ "listen_tls" = "0" }
|
|
{ "listen_tcp" = "1" }
|
|
{ "tls_port" = "16514" }
|
|
{ "tcp_port" = "16509" }
|
|
{ "listen_addr" = "192.168.0.1" }
|
|
{ "mdns_adv" = "1" }
|
|
{ "mdns_name" = "Virtualization Host Joe Demo" }
|
|
{ "unix_sock_group" = "libvirt" }
|
|
{ "unix_sock_ro_perms" = "0777" }
|
|
{ "unix_sock_rw_perms" = "0770" }
|
|
{ "unix_sock_admin_perms" = "0700" }
|
|
{ "unix_sock_dir" = "/var/run/libvirt" }
|
|
{ "auth_unix_ro" = "none" }
|
|
{ "auth_unix_rw" = "none" }
|
|
{ "auth_tcp" = "sasl" }
|
|
{ "auth_tls" = "none" }
|
|
{ "access_drivers"
|
|
{ "1" = "polkit" }
|
|
}
|
|
{ "key_file" = "/etc/pki/libvirt/private/serverkey.pem" }
|
|
{ "cert_file" = "/etc/pki/libvirt/servercert.pem" }
|
|
{ "ca_file" = "/etc/pki/CA/cacert.pem" }
|
|
{ "crl_file" = "/etc/pki/CA/crl.pem" }
|
|
{ "tls_no_sanity_certificate" = "1" }
|
|
{ "tls_no_verify_certificate" = "1" }
|
|
{ "tls_allowed_dn_list"
|
|
{ "1" = "DN1"}
|
|
{ "2" = "DN2"}
|
|
}
|
|
{ "sasl_allowed_username_list"
|
|
{ "1" = "joe@EXAMPLE.COM" }
|
|
{ "2" = "fred@EXAMPLE.COM" }
|
|
}
|
|
{ "max_clients" = "5000" }
|
|
{ "max_queued_clients" = "1000" }
|
|
{ "max_anonymous_clients" = "20" }
|
|
{ "min_workers" = "5" }
|
|
{ "max_workers" = "20" }
|
|
{ "prio_workers" = "5" }
|
|
{ "max_requests" = "20" }
|
|
{ "max_client_requests" = "5" }
|
|
{ "admin_min_workers" = "1" }
|
|
{ "admin_max_workers" = "5" }
|
|
{ "admin_max_clients" = "5" }
|
|
{ "admin_max_queued_clients" = "5" }
|
|
{ "admin_max_client_requests" = "5" }
|
|
{ "log_level" = "3" }
|
|
{ "log_filters" = "3:remote 4:event" }
|
|
{ "log_outputs" = "3:syslog:libvirtd" }
|
|
{ "log_buffer_size" = "64" }
|
|
{ "audit_level" = "2" }
|
|
{ "audit_logging" = "1" }
|
|
{ "host_uuid" = "00000000-0000-0000-0000-000000000000" }
|
|
{ "keepalive_interval" = "5" }
|
|
{ "keepalive_count" = "5" }
|
|
{ "keepalive_required" = "1" }
|
|
{ "admin_keepalive_required" = "1" }
|
|
{ "admin_keepalive_interval" = "5" }
|
|
{ "admin_keepalive_count" = "5" }
|