| 
 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: 
  
--- 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. 
 |