[Spice-devel] [PATCH spice-streaming-agent v3 0/2] handle error messages from the server

Lukáš Hrázký lhrazky at redhat.com
Tue Feb 27 14:09:38 UTC 2018


Changes since v2:
- removed read_len, decrementing len and incrementing msg pointer as we
  read in read_all()
- used a new struct with 1k fixed message size buffer instead of an
  uint8_t array
- in case of too long a message, read a partial message, log it and
  finish with an exception
- check for minimum error message size

Changes since v1:
- renamed read_message() to read_all()
- read_all now does partial reads and handles EINT
- resolved TODOs in second patch, icreased the message size, use
  sizeof(msg) instead of a constant

Lukáš Hrázký (2):
  Move reading stream messages into a function
  Implement handling of error messages from the server

 src/spice-streaming-agent.cpp | 51 +++++++++++++++++++++++++++++++++----------
 1 file changed, 39 insertions(+), 12 deletions(-)

-- 
2.16.1



More information about the Spice-devel mailing list