[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [ooni-probe/master] Add logging of undetermined states reported by OpenSSL's state machine to
commit b016417340b8ff3e4cdd860215157f0dfa8944f7
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
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):
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits