mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
When the guest did a half-close (shutting down only its send side) the connection state was updated but the write half of the host Unix socket was never closed so the host peer never saw an EOF. This caused issues with newer systemd (v256+) as it now half closes its socket and waits for the host side to react and fully close the connection. Propagate the guest's half-close to the host by shutting down the write half of the backing stream. This is deferred until any buffered guest data has been flushed so that no data is lost, and the connection is left open so that host-to-guest data keeps flowing. Assisted-by: Claude:claude-opus-4-8 Signed-off-by: Rob Bradford <rbradford@meta.com>