metal/mtce-common
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
..
centos StarlingX open source release updates 2018-05-31 07:36:43 -07:00
cgts-mtce-common-1.0 Rewrite virtio message handler for guest heartbeat 2018-06-22 21:00:05 -04:00
LICENSE StarlingX open source release updates 2018-05-31 07:36:43 -07:00
PKG-INFO StarlingX open source release updates 2018-05-31 07:36:43 -07:00