[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [ooni-probe/master] The socket must be module level global for the test to set options on it.



commit c979915c99ad8e5c28a762cae4b5ae44e43190a4
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date:   Mon Apr 22 00:10:52 2013 +0000

    The socket must be module level global for the test to set options on it.
---
 nettests/experimental/tls_handshake.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/nettests/experimental/tls_handshake.py b/nettests/experimental/tls_handshake.py
index 1b66b45..ac94466 100644
--- a/nettests/experimental/tls_handshake.py
+++ b/nettests/experimental/tls_handshake.py
@@ -183,6 +183,7 @@ class TLSHandshakeTest(nettest.NetTestCase):
                     yield self.splitInput(line)
 
     def buildSocket(self, addr):
+        global s
         ip = IPAddress(addr) ## learn if we're IPv4 or IPv6
         if ip.version == 4:
             s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits