Skip to contentSkip to conversation

closed each side of the socket when cross migration

PATCH James Song 1 participant 1 message Jul 2, 2009

lore
Share & tools
lore

James Song

author
#0 lore raw

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:

tools/python/xen/xend/XendDomain.py +1 -1
@@ -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
[email protected]
http://lists.xensource.com/xen-devel