ia64/xen-unstable

changeset 17637:d5f24c99189b

Further minor ssl relo fixes.
Signed-off-by: Zhigang Wang <zhigang.x.wang@oracle.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue May 13 09:20:23 2008 +0100 (2008-05-13)
parents f8ce6e3d86c7
children 2ab64478bd81
files tools/python/xen/web/connection.py
line diff
     1.1 --- a/tools/python/xen/web/connection.py	Tue May 13 09:19:07 2008 +0100
     1.2 +++ b/tools/python/xen/web/connection.py	Tue May 13 09:20:23 2008 +0100
     1.3 @@ -135,13 +135,15 @@ class SSLSocketServerConnection(SocketSe
     1.4      received data to one end of the pipe, then read from the other end:
     1.5      
     1.6      p2cread, p2cwrite = os.pipe()
     1.7 -    threading.Thread(target=connection.recv2fd, args=(sock, p2cwrite)).start()
     1.8 +    threading.Thread(target=connection.SSLSocketServerConnection.recv2fd,
     1.9 +                     args=(sock, p2cwrite)).start()
    1.10      os.read(p2cread, 1024)
    1.11      
    1.12      To use fd2send():
    1.13      
    1.14      p2cread, p2cwrite = os.pipe()
    1.15 -    threading.Thread(target=connection.fd2send, args=(sock, p2cread)).start()
    1.16 +    threading.Thread(target=connection.SSLSocketServerConnection.fd2send,
    1.17 +                     args=(sock, p2cread)).start()
    1.18      os.write(p2cwrite, "data")
    1.19      """
    1.20  
    1.21 @@ -233,6 +235,7 @@ class SSLSocketServerConnection(SocketSe
    1.22  
    1.23      recv2fd = staticmethod(recv2fd)
    1.24  
    1.25 +
    1.26      def fd2send(sock, fd):
    1.27          try:
    1.28              while True:
    1.29 @@ -278,6 +281,7 @@ class SSLSocketServerConnection(SocketSe
    1.30  
    1.31      fd2send = staticmethod(fd2send)
    1.32  
    1.33 +
    1.34  def hostAllowed(addrport, hosts_allowed):
    1.35      if hosts_allowed is None:
    1.36          return True