mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-03 20:01:16 +00:00
1519c55dc8
Currently the socket code will unlink any UNIX socket path which is associated with a server socket. This is not fine grained enough, as we need to avoid unlinking server sockets we were passed by systemd. To deal with this we must explicitly track whether each socket needs to be unlinked when closed, separately of the client vs server state. Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
69 lines
1.6 KiB
JSON
69 lines
1.6 KiB
JSON
{
|
|
"min_workers": 10,
|
|
"max_workers": 50,
|
|
"priority_workers": 5,
|
|
"max_clients": 100,
|
|
"max_anonymous_clients": 10,
|
|
"keepaliveInterval": 120,
|
|
"keepaliveCount": 5,
|
|
"keepaliveRequired": true,
|
|
"services": [
|
|
{
|
|
"auth": 0,
|
|
"readonly": true,
|
|
"nrequests_client_max": 2,
|
|
"socks": [
|
|
{
|
|
"fd": 100,
|
|
"errfd": -1,
|
|
"pid": 0,
|
|
"isClient": false,
|
|
"unlinkUNIX": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"auth": 2,
|
|
"readonly": false,
|
|
"nrequests_client_max": 5,
|
|
"socks": [
|
|
{
|
|
"fd": 101,
|
|
"errfd": -1,
|
|
"pid": 0,
|
|
"isClient": false,
|
|
"unlinkUNIX": true
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"clients": [
|
|
{
|
|
"auth": 1,
|
|
"readonly": true,
|
|
"nrequests_max": 15,
|
|
"sock": {
|
|
"fd": 102,
|
|
"errfd": -1,
|
|
"pid": -1,
|
|
"isClient": true,
|
|
"unlinkUNIX": false
|
|
},
|
|
"privateData": 1729
|
|
},
|
|
{
|
|
"auth": 2,
|
|
"readonly": true,
|
|
"nrequests_max": 66,
|
|
"sock": {
|
|
"fd": 103,
|
|
"errfd": -1,
|
|
"pid": -1,
|
|
"isClient": true,
|
|
"unlinkUNIX": false
|
|
},
|
|
"privateData": 1729
|
|
}
|
|
]
|
|
}
|