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

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

 



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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]