From: Zhigang Wang <zhigang.x.wang@oracle.com>
To: xen-devel <xen-devel@lists.xensource.com>
Cc: "Kurt C. Hackel" <kurt.hackel@oracle.com>, xiaowei.hu@oracle.com
Subject: [PATCH]fix a ssl migration hang issue
Date: Fri, 09 Jan 2009 16:21:31 +0800 [thread overview]
Message-ID: <4967090B.9030203@oracle.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 402 bytes --]
hi,
this patch fixes a ssl migration hang issue: when another VM started by
xend, the spawned qemu process will keep the p2cwrite file descriptor open.
Thus there will be two open descriptors associated with the write end of the
pipe. Then when read end of the pipe only reach the EOF when the qemu process
has terminated.
Signed-off-by: Zhigang Wang <zhigang.x.wang@oracle.com>
thanks,
zhigang
[-- Attachment #2: xen-unstalbe-ssl-migration-hang.patch --]
[-- Type: text/x-patch, Size: 770 bytes --]
diff -Nurap xen-unstable.orig/tools/python/xen/xend/server/relocate.py xen-unstable/tools/python/xen/xend/server/relocate.py
--- xen-unstable.orig/tools/python/xen/xend/server/relocate.py 2009-01-09 14:48:08.000000000 +0800
+++ xen-unstable/tools/python/xen/xend/server/relocate.py 2009-01-09 15:45:05.000000000 +0800
@@ -122,6 +122,8 @@ class RelocationProtocol(protocol.Protoc
if self.transport:
self.send_reply(["ready", name])
p2cread, p2cwrite = os.pipe()
+ from xen.util import oshelp
+ oshelp.fcntl_setfd_cloexec(p2cwrite, True)
threading.Thread(target=connection.SSLSocketServerConnection.recv2fd,
args=(self.transport.sock, p2cwrite)).start()
try:
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
reply other threads:[~2009-01-09 8:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4967090B.9030203@oracle.com \
--to=zhigang.x.wang@oracle.com \
--cc=kurt.hackel@oracle.com \
--cc=xen-devel@lists.xensource.com \
--cc=xiaowei.hu@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.