Go to file
Hans de Goede c0808ab884 vd_agent: Add a new VD_AGENT_CLIENT_DISCONNECTED message
Client -> agent messages can spawn multiple VDIChunks. When this happens
the agent re-assembles the chunks into a complete VDAgentMessage before
processing it. The server only guarentees coherency at the chunk level,
so it is not possible for a partial chunk to get delivered to the agent.

But it is possible for some chunks of a VDAgentMessage to be delivered to
the agent followed by a client to disconnect without the rest of the
VDAgentMessage being delivered!

This will leave the agent in a wrong state, and the first messages send to it
by the next client to connect will get seen as the rest of the VDAgentMessage
from the previous client.

This patch introduces a new VD_AGENT_CLIENT_DISCONNECTED message which the
server will send from the VDP_SERVER_PORT on client disconnect, on which the
agent can then reset its VDP_CLIENT_PORT state.

Note that no capability is added for this, since capabilities are tracked
between the client and the agent only. The server will simply always send
this message on client disconnect, relying on older agents discarding the
message since it has an unknown type (which both the windows and linux agents
already do).

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2013-03-05 14:41:09 +01:00
spice vd_agent: Add a new VD_AGENT_CLIENT_DISCONNECTED message 2013-03-05 14:41:09 +01:00
AUTHORS Add autoconf and pkg-config setup 2010-02-04 16:47:27 +01:00
autogen.sh autogen.sh: handle ORIGDIR with spaces 2011-11-10 15:46:27 +02:00
ChangeLog Add autoconf and pkg-config setup 2010-02-04 16:47:27 +01:00
configure.ac Post-release bump 2013-02-01 04:34:54 +01:00
COPYING Add MIT style COPYING file 2010-02-04 16:23:24 +01:00
git.mk Update git.mk to latest version 2012-09-21 15:48:39 +02:00
includes.sed Add includes.sed file to handle include renaming 2010-02-04 18:12:07 +01:00
Makefile.am build-sys: use git.mk 2012-03-19 21:12:18 +01:00
NEWS Release 0.12.4 2013-01-30 14:58:02 +01:00
README Add autoconf and pkg-config setup 2010-02-04 16:47:27 +01:00
rename-identifiers.sh Add utility script to do C identifier renaming 2010-02-04 16:43:24 +01:00
renames fix up reames 2010-02-04 18:11:09 +01:00
spice-protocol.pc.in Add autoconf and pkg-config setup 2010-02-04 16:47:27 +01:00