qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] For unix domain socket, will only one client could conn


From: Sam
Subject: Re: [Qemu-devel] For unix domain socket, will only one client could connect to this socket?
Date: Thu, 27 Jul 2017 19:58:06 +0800

Thank you, I think another process connect this socket, so I hanged here.

2017-07-27 18:47 GMT+08:00 Daniel P. Berrange <address@hidden>:

> On Thu, Jul 27, 2017 at 06:37:32PM +0800, Sam wrote:
> > Hi all,
> >
> > I'm working on qemu-qga, and I want to send qmp command from this unix
> > socket, but it hanged there(no response), I don't know if it's connect
> > failed or something?
> >
> > address@hidden ~]# socat
> > > /opt/cloud/workspace/servers/f6fdd093-383b-444e-9bcf-
> dfa81794d465/qga.sock
> > > readline
> > > {"execute": "guest-execute", "session": "4768", "arguments":
> {"commands":
> > > [{"command": "/bin/sh", "arguments": ["sh", "-c", "ping -c 1
> > > 172.16.0.1"]}]}}
>
> Pointless use of shell there. Just directly run ping
>
>   {"command": "/bin/ping", "arguments": ["-c", "1", "172.16.0.1"]}
>
> >
> >
> > My question is, for tcp or udp socket, many client could connect to one
> > server, is unix socket the same? Thank you~
>
> You can only ever have a single client connected, even with tcp/unix
> sockets backends.
>
> Regards,
> Daniel
> --
> |: https://berrange.com      -o-    https://www.flickr.com/photos/
> dberrange :|
> |: https://libvirt.org         -o-
> https://fstop138.berrange.com :|
> |: https://entangle-photo.org    -o-    https://www.instagram.com/
> dberrange :|
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]