James Song
2009-Jul-02 09:34 UTC
[Xen-devel] closed each side of the socket when cross migration
when migrate simultaneously on two host, the first migrate will not complete for socket refuse to be closed for unfinished read/write operator. So below patch will fix this bug: Signed-off-by: James Song(Song Wei) <jsong@novell.com> --- a/tools/python/xen/xend/XendDomain.py +++ b/tools/python/xen/xend/XendDomain.py @@ -1361,7 +1361,7 @@ class XendDomain: XendCheckpoint.save(sock.fileno(), dominfo, True, live, dst, node=node) finally: - sock.close() + sock.shutdown(SHUT_RDWR) def domain_save(self, domid, dst, checkpoint=False, force=False): """Start saving a domain to file. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel