From: "James Song" Subject: closed each side of the socket when cross migration Date: Thu, 02 Jul 2009 03:34:35 -0600 Message-ID: <4A4D0BCB0200002000066EEA@lucius.provo.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1161805410==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --===============1161805410== Content-Type: multipart/alternative; boundary="=__Part2A01213B.0__=" This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part2A01213B.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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) =20 --- 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=3Dnode) finally: - sock.close() + sock.shutdown(SHUT_RDWR) =20 def domain_save(self, domid, dst, checkpoint=3DFalse, force=3DFalse): """Start saving a domain to file. --=__Part2A01213B.0__= Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
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/xe= nd/XendDomain.py
@@ -1361,7 +1361,7 @@ class XendDomain:
  =             &nb= sp;  XendCheckpoint.save(sock.fileno(), dominfo, True, live,
 =             &nb= sp;            =            dst, = node=3Dnode)
          = ;   finally:
-        =         sock.close()
+  &nb= sp;            = sock.shutdown(SHUT_RDWR)
 
     def domain_save(self, domid, dst, checkpoint= =3DFalse, force=3DFalse):
       &nbs= p; """Start saving a domain to file.
--=__Part2A01213B.0__=-- --===============1161805410== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1161805410==--