id = 1055 title = "QEMU does not close listening socket for incoming migration when post-copy migration breaks" state = "closed" created_at = "2022-06-02T15:04:38.993Z" closed_at = "2024-12-18T13:34:03.970Z" labels = ["Migration"] url = "https://gitlab.com/qemu-project/qemu/-/issues/1055" host-os = "Fedora 35" host-arch = "x86_64" qemu-version = "7.0.0" guest-os = "RHEL 7.8" guest-arch = "x86" description = """QEMU keeps listening on the incoming port even after breaking a post-copy migration using "migrate-pause" QMP command. And even once migration is finished after recovering it "migrate-recover" using a different port number. If "migrate-recover" is called with a URI specifying the original port (which is still in LISTEN state), QEMU reports "Failed to find an available port: Address already in use".""" reproduce = """1. start migration 2. wait for the first iteration to finish 3. switch to post-copy using "migrate-start-postcopy" 3. break migration with "migrate-pause" 4. check lsof -p $QEMU_PID""" additional = """"""