mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
During a live migration, connections may get interrupted silently, without being reset or closed. Interrupted idle connections may stay alive indefinitely, for example if a connection dies during prefaulting on the receiver side. To detect dead idle connections, we enable `SO_KEEPALIVE`. With `SO_KEEPALIVE`, the kernel will send keepalive probes if a connection is idle and close the connection if the probes remain unacknowledged. To detect dead connections when actively sending data in a timely manner, we enable `TCP_USER_TIMEOUT`, to reduce the timeout for closing a connection where the peer doesn't acknowledge sent data. On-behalf-of: SAP julian.schindel@sap.com Signed-off-by: Julian Schindel <julian.schindel@cyberus-technology.de>