* [PATCH]fix a ssl migration hang issue
@ 2009-01-09 8:21 Zhigang Wang
0 siblings, 0 replies; only message in thread
From: Zhigang Wang @ 2009-01-09 8:21 UTC (permalink / raw)
To: xen-devel; +Cc: Kurt C. Hackel, xiaowei.hu
[-- 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-01-09 8:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-09 8:21 [PATCH]fix a ssl migration hang issue Zhigang Wang
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.