This repository has been archived by the owner on May 12, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
proxy: Maintain communication state with a heartbeat
We are trying to disable the feature keepalive introduced by Yamux both on the client (kata-proxy) and server (kata-agent) sides. The reason being we don't want to get Yamux errors in case we pause the VM. The proxy side has already been disabled and we are about to disable it on the agent side too. Problem is, we sometimes run into a weird issue where the communication between the proxy and the agent hangs. It's related to the emulated serial port created by Qemu which is not getting out of its sleeping loop for some cases. This issue is still under investigation, but a simple fix is to actually write more data to the serial port to wake it up. This workaround is needed since disabling Yamux keepalive solves several issues, particularly one related to our long running soak tests. That's why this commit enables a simple "keepalive" feature, except it does not check for any error. The idea being to simply sending something out through this serial port. Fixes #70 Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
- Loading branch information