[libvirt] [PATCH 3/5] qemu: vnc: mark websocket as used on reconnect
Nikolay Shirokovskiy
nshirokovskiy at virtuozzo.com
Wed Jul 4 11:03:39 UTC 2018
Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy at virtuozzo.com>
---
src/qemu/qemu_process.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index de2e84b..09e0327 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c
@@ -4326,7 +4326,8 @@ qemuProcessGraphicsReservePorts(virDomainGraphicsDefPtr graphics,
return -1;
graphics->data.vnc.portReserved = true;
}
- if (graphics->data.vnc.websocket > 0) {
+ if (graphics->data.vnc.websocket > 0 ||
+ reconnect) {
if (virPortAllocatorSetUsed(graphics->data.vnc.websocket) < 0)
return -1;
graphics->data.vnc.websocketReserved = true;
--
1.8.3.1
More information about the libvir-list
mailing list