[tor-commits] [ooni-probe/master] Add logging of undetermined states reported by OpenSSL's state machine to

art at torproject.org art at torproject.org
Tue Apr 30 13:01:43 UTC 2013


commit b016417340b8ff3e4cdd860215157f0dfa8944f7
Author: Isis Lovecruft <isis at 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 files changed, 3 insertions(+), 1 deletions(-)

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):





More information about the tor-commits mailing list