[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] closed each side of the socket when cross migration


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "James Song" <jsong@xxxxxxxxxx>
  • Date: Thu, 02 Jul 2009 03:34:35 -0600
  • Delivery-date: Thu, 02 Jul 2009 02:35:05 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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@xxxxxxxxxx>
 
--- 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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.