StreamDevice: Handle incomplete reads of StreamMsgFormat

Enterprise / Virtualization / SPICE - Jonathon Jongsma [redhat.com] - 27 November 2017 21:37 EST

This is currently unlikely to happen since we communicate over a pipe and the pipe buffer is sufficiently large to avoid splitting the message. But for completeness, we should handle this scenario.

61aa6ac8 StreamDevice: Handle incomplete reads of StreamMsgFormat
configure.ac | 2 +-
server/stream-device.c | 32 +++++++++++++++++++++++---------
2 files changed, 24 insertions(+), 10 deletions(-)

Upstream: cgit.freedesktop.org


  • Share