metal/mtce-common/cgts-mtce-common-1.0
Jack Ding 94cdbb73d4 Rewrite virtio message handler for guest heartbeat
Due to race conditions, multiple messages might be received from a
single read by guestServer. guestServer in this case would only handle
the first message and discard the remaining ones.

In this particular issue, guestServer received a heartbeat challenge
response message and a vote notification response (reject) message from
a single read, and the latter message was discarded.

This fix rewrites message handler for virtio serial channel to handle
segmented and multiple messages. It uses newline character to deliminate
messages so it assumes any newline characters in client log message are
removed.

Change-Id: Ic6f0509c98fcedf3631f4d210f753c32c37aa442
Signed-off-by: Jack Ding <jack.ding@windriver.com>
2018-06-22 21:00:05 -04:00
..
alarm StarlingX open source release updates 2018-05-31 07:36:43 -07:00
common StarlingX open source release updates 2018-05-31 07:36:43 -07:00
daemon StarlingX open source release updates 2018-05-31 07:36:43 -07:00
fsmon StarlingX open source release updates 2018-05-31 07:36:43 -07:00
guest Rewrite virtio message handler for guest heartbeat 2018-06-22 21:00:05 -04:00
heartbeat StarlingX open source release updates 2018-05-31 07:36:43 -07:00
hostw StarlingX open source release updates 2018-05-31 07:36:43 -07:00
hwmon StarlingX open source release updates 2018-05-31 07:36:43 -07:00
maintenance StarlingX open source release updates 2018-05-31 07:36:43 -07:00
mtclog StarlingX open source release updates 2018-05-31 07:36:43 -07:00
pmon StarlingX open source release updates 2018-05-31 07:36:43 -07:00
public StarlingX open source release updates 2018-05-31 07:36:43 -07:00
rmon StarlingX open source release updates 2018-05-31 07:36:43 -07:00
scripts StarlingX open source release updates 2018-05-31 07:36:43 -07:00
.gitignore StarlingX open source release updates 2018-05-31 07:36:43 -07:00
LICENSE StarlingX open source release updates 2018-05-31 07:36:43 -07:00
Makefile StarlingX open source release updates 2018-05-31 07:36:43 -07:00