From dd32a4664f3f13fc5bf2490b796e8b27f98e0156 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Tue, 16 May 2017 16:21:01 +0200 Subject: [PATCH] use ReuseAddr for vncproxy to avoid "Socket already in use" errors, when quickly opening/closing console sessions on the webinterface Signed-off-by: Dominik Csapak --- PVE/API2/Qemu.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 43a5e4a..c566c4d 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -1433,6 +1433,7 @@ __PACKAGE__->register_method({ $cmd = [@$remcmd, "/usr/sbin/qm", 'vncproxy', $vmid]; my $sock = IO::Socket::IP->new( + ReuseAddr => 1, Listen => 1, LocalPort => $port, Proto => 'tcp', -- 2.39.2