[pve-devel] [PATCH 2/6] qemu_drive_mirror : handle multiple jobs
Alexandre DERUMIER
aderumier at odiso.com
Mon Dec 26 10:48:16 CET 2016
>>it has a `connect-timeout` option (which is almost surprising).
Oh, works even better.
#socat UNIX-LISTEN:/tmp/foo.sock TCP:8.8.8.8:1234,connect-timeout=1
# drive_mirror -n drive-scsi0 nbd:unix:/tmp/foo.sock
Failed to read data
(and socat is killed)
----- Mail original -----
De: "Wolfgang Bumiller" <w.bumiller at proxmox.com>
À: "aderumier" <aderumier at odiso.com>, "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Dimanche 25 Décembre 2016 20:00:07
Objet: Re: [pve-devel] [PATCH 2/6] qemu_drive_mirror : handle multiple jobs
> On December 24, 2016 at 10:12 AM Alexandre DERUMIER <aderumier at odiso.com> wrote:
>
>
> Just has done small test with a socat tunnel
>
>
>
> socat UNIX-LISTEN:/tmp/foo.sock,reuseaddr,fork TCP:8.8.8.8:1234
>
> drive_mirror -n drive-scsi0 nbd:unix:/tmp/foo.sock:test
>
>
> then it's hanging like before, because no reponse. (we can make a small timeout to qmp response wait)
>
> then,we can kill socat, which is dropping the unix socket, and drive-mirror abort and freeing qmp commands.
A nasty trick, but I suppose it gets the job done for now (until someone
sends a patch upstream). Btw. before you go around killing socats: it has
a `connect-timeout` option (which is almost surprising).
More information about the pve-devel
mailing list