[Top][All Lists]

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

Re: [Qemu-discuss] [Qemu-devel] For unix domain socket, will only one cl

From: Daniel P. Berrange
Subject: Re: [Qemu-discuss] [Qemu-devel] For unix domain socket, will only one client could connect to this socket?
Date: Thu, 27 Jul 2017 11:47:05 +0100
User-agent: Mutt/1.8.3 (2017-05-23)

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
> >"]}]}}

Pointless use of shell there. Just directly run ping

  {"command": "/bin/ping", "arguments": ["-c", "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.

|: 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]