cloud-hypervisor/api_client
Maximilian Nitsch 686e6d5082 api-client: Break the receive loop if the VMM shuts down the socket
Breaks the receive loop of the API client when the VMM shuts down the
socket connection. A shutdown is indicated by the return value 0 of the
`recv()` system call.[^1][^2] This case was not handled before, so the
API client tried infinitely to receive more bytes and did not return.

[^1]: https://linux.die.net/man/2/recv
[^2]: https://doc.rust-lang.org/std/io/trait.Read.html#tymethod.read

Signed-off-by: Maximilian Nitsch <maximilian.nitsch@d3tn.com>
2022-07-25 13:19:37 +01:00
..
src api-client: Break the receive loop if the VMM shuts down the socket 2022-07-25 13:19:37 +01:00
Cargo.toml build: bump vmm-sys-util from 0.9.0 to 0.10.0 2022-07-20 09:40:28 +00:00