From: "Dr. David Alan Gilbert" <dgilb...@redhat.com> Hi, Where a channel fails asynchronously during connect, call back through the migration code so it can clean up. In particular this causes the transition of a 'cancelling' state to 'cancelled' in the case of:
migrate -d tcp:deadhost:port <host tries to connect> migrate_cancel previously the status would get stuck in cancelling because the final cleanup didn't happen. This is the second part of the fix for: https://bugzilla.redhat.com/show_bug.cgi?id=1525899 Dave Dr. David Alan Gilbert (2): migration: Allow migrate_fd_connect to take an Error * migration: Route errors down through migration_channel_connect migration/channel.c | 32 ++++++++++++++++---------------- migration/channel.h | 3 ++- migration/exec.c | 2 +- migration/fd.c | 2 +- migration/migration.c | 7 ++++++- migration/migration.h | 2 +- migration/rdma.c | 2 +- migration/socket.c | 4 +--- migration/tls.c | 3 +-- migration/trace-events | 2 +- 10 files changed, 31 insertions(+), 28 deletions(-) -- 2.14.3