Mercurial > hg
comparison tests/test-rebuildstate.t @ 15812:0cc4ad757c77
sslutil: verify that wrap_socket really wrapped the socket
This works around that ssl.wrap_socket silently skips ssl negotiation on
sockets that was connected but since then has been reset by the peer but not
yet closed at the Python level. That leaves the socket in a state where
.getpeercert() fails with an AttributeError on None. See
http://bugs.python.org/issue13721 .
A call to .cipher() is now used to verify that the wrapping really did succeed.
Otherwise it aborts with "ssl connection failed".
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Mon, 09 Jan 2012 14:43:15 +0100 |
parents | 9ab2b3b730ee |
children | f2719b387380 |
comparison
equal
deleted
inserted
replaced
15811:b9886dde3649 | 15812:0cc4ad757c77 |
---|