mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: allow keeping the socket listener around
This allows accepting multiple connections in the migration receive path. On-behalf-of: SAP sebastian.eydam@sap.com Signed-off-by: Sebastian Eydam <sebastian.eydam@cyberus-technology.de>
This commit is contained in:
+3
-2
@@ -2298,9 +2298,10 @@ impl RequestHandler for Vmm {
|
||||
receive_data_migration.receiver_url
|
||||
);
|
||||
|
||||
let mut listener =
|
||||
migration_transport::receive_migration_listener(&receive_data_migration.receiver_url)?;
|
||||
// Accept the connection and get the socket
|
||||
let mut socket =
|
||||
migration_transport::receive_migration_socket(&receive_data_migration.receiver_url)?;
|
||||
let mut socket = listener.accept()?;
|
||||
|
||||
event!("vm", "migration-receive-started");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user