]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Increase the number of available VNC ports.
authorChris Lalancette <clalance@redhat.com>
Tue, 23 Mar 2010 13:25:31 +0000 (09:25 -0400)
committerChris Lalancette <clalance@redhat.com>
Tue, 6 Apr 2010 13:40:17 +0000 (09:40 -0400)
When starting up qemu VNC autoport guests, we were
only looking through ports 5900 to 6000, meaning we
were limited to 100 total clients.  Increase that
limit to 65535 (the last available port), so we can
have up to 59635 VNC autoport guests.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
src/qemu/qemu_driver.c

index a87b9741ab1ff024f22f068a7da8b4267c37a4b3..f274f8175b409946ca27eaab5daf8ce61bbe0423 100644 (file)
@@ -2598,7 +2598,7 @@ qemuInitPCIAddresses(struct qemud_driver *driver,
 static int qemudNextFreeVNCPort(struct qemud_driver *driver ATTRIBUTE_UNUSED) {
     int i;
 
-    for (i = 5900 ; i < 6000 ; i++) {
+    for (i = 5900 ; i < 65535 ; i++) {
         int fd;
         int reuse = 1;
         struct sockaddr_in addr;