[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] Further minor ssl relo fixes.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1210666823 -3600 # Node ID d5f24c99189bc891636fe98b005aa8d96242f63e # Parent f8ce6e3d86c76a39a2e5098c5cc1c5e5529091f9 Further minor ssl relo fixes. Signed-off-by: Zhigang Wang <zhigang.x.wang@xxxxxxxxxx> --- tools/python/xen/web/connection.py | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff -r f8ce6e3d86c7 -r d5f24c99189b tools/python/xen/web/connection.py --- a/tools/python/xen/web/connection.py Tue May 13 09:19:07 2008 +0100 +++ b/tools/python/xen/web/connection.py Tue May 13 09:20:23 2008 +0100 @@ -135,13 +135,15 @@ class SSLSocketServerConnection(SocketSe received data to one end of the pipe, then read from the other end: p2cread, p2cwrite = os.pipe() - threading.Thread(target=connection.recv2fd, args=(sock, p2cwrite)).start() + threading.Thread(target=connection.SSLSocketServerConnection.recv2fd, + args=(sock, p2cwrite)).start() os.read(p2cread, 1024) To use fd2send(): p2cread, p2cwrite = os.pipe() - threading.Thread(target=connection.fd2send, args=(sock, p2cread)).start() + threading.Thread(target=connection.SSLSocketServerConnection.fd2send, + args=(sock, p2cread)).start() os.write(p2cwrite, "data") """ @@ -232,6 +234,7 @@ class SSLSocketServerConnection(SocketSe pass recv2fd = staticmethod(recv2fd) + def fd2send(sock, fd): try: @@ -278,6 +281,7 @@ class SSLSocketServerConnection(SocketSe fd2send = staticmethod(fd2send) + def hostAllowed(addrport, hosts_allowed): if hosts_allowed is None: return True _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |