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:
parent
ca5c27f065
commit
923aaa9e1a
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user