5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-10 01:18:01 +03:00

drive-mirror: bump timeout to 5s, add 30s inactivity timeout

This commit is contained in:
Wolfgang Bumiller 2017-01-05 09:40:44 +01:00
parent ca5c27f065
commit 923aaa9e1a

View File

@ -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)) {