commit b016417340b8ff3e4cdd860215157f0dfa8944f7 Author: Isis Lovecruft isis@torproject.org Date: Thu Feb 28 04:33:16 2013 +0000
Add logging of undetermined states reported by OpenSSL's state machine to doHandshake(). This should not ever occur, but just in case it does, we'll want to log it rather than throwing the Exception out. --- nettests/experimental/tls_handshake.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/nettests/experimental/tls_handshake.py b/nettests/experimental/tls_handshake.py index a02cb2f..c77682d 100644 --- a/nettests/experimental/tls_handshake.py +++ b/nettests/experimental/tls_handshake.py @@ -500,7 +500,9 @@ class TLSHandshakeTest(nettest.NetTestCase): log.msg("Connection to %s:%s timed out." % (peername, str(peerport))) else: - log.msg("Received: %s" % recvstr) + log.msg("Received: %s" % received) + log.debug("State: %s" % connection.state_string()) + return connection
def handshakeSucceeded(connection):