[pve-devel] [PATCH qemu-server 3/4] drive-mirror: bump timeout to 5s, add 30s inactivity timeout

Wolfgang Bumiller w.bumiller at proxmox.com
Thu Jan 5 10:09:28 CET 2017


---
 PVE/QemuServer.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 31e30fa..c2fa20b 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -5919,7 +5919,7 @@ sub qemu_drive_mirror {
 	$format = "nbd";
 	my $unixsocket = "/run/qemu-server/$vmid.mirror-drive-$drive";
 	$qemu_target = "nbd+unix:///$exportname?socket=$unixsocket";
-	my $cmd = ['socat', "UNIX-LISTEN:$unixsocket,fork", "TCP:$server:$2,connect-timeout=1"];
+	my $cmd = ['socat', '-T30', "UNIX-LISTEN:$unixsocket,fork", "TCP:$server:$2,connect-timeout=5"];
 
 	my $pid = fork();
 	if (!defined($pid)) {
-- 
2.1.4




More information about the pve-devel mailing list