mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
rpc: Fix error message in virNetServerSetClientLimits
That way it actually fits with what the condition checks for. Signed-off-by: Martin Kletzander <mkletzan@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
1d625c5d25
commit
f007940cb2
@ -1114,9 +1114,9 @@ virNetServerSetClientLimits(virNetServer *srv,
|
||||
|
||||
if (max < max_unauth) {
|
||||
virReportError(VIR_ERR_INVALID_ARG, "%s",
|
||||
_("The overall maximum number of clients must be "
|
||||
"greater than the maximum number of clients waiting "
|
||||
"for authentication"));
|
||||
_("The overall maximum number of clients waiting "
|
||||
"for authentication must not be less than the overall "
|
||||
"maximum number of clients"));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,31 @@
|
||||
{
|
||||
"servers": {
|
||||
"testServer0": {
|
||||
"min_workers": 10,
|
||||
"max_workers": 50,
|
||||
"priority_workers": 5,
|
||||
"max_clients": 5,
|
||||
"max_anonymous_clients": 10,
|
||||
"keepaliveInterval": 120,
|
||||
"keepaliveCount": 5,
|
||||
"next_client_id": 5,
|
||||
"services": [
|
||||
{
|
||||
"auth": 0,
|
||||
"readonly": true,
|
||||
"nrequests_client_max": 2,
|
||||
"socks": [
|
||||
{
|
||||
"fd": 100,
|
||||
"errfd": -1,
|
||||
"pid": 0,
|
||||
"isClient": false
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"clients": [
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1 @@
|
||||
internal error: The overall maximum number of clients must not be less than the number of clients waiting for authentication
|
@ -413,6 +413,7 @@ mymain(void)
|
||||
EXEC_RESTART_TEST_FAIL("anon-clients", 2);
|
||||
EXEC_RESTART_TEST("client-auth-pending", 1);
|
||||
EXEC_RESTART_TEST_FAIL("client-auth-pending-failure", 1);
|
||||
EXEC_RESTART_TEST_FAIL("invalid-max-clients-failure", 1);
|
||||
|
||||
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user