Compatibility Updates for Python 2.7.12
* dtls/openssl.py: support reading directly into given buffer instead
of forcing buffer copy (for ssl module compatibility)
* dtls/sslconnection.py: in-situ receive support, as above
* dtls/patch.py: various changes for compatibility with the ssl module
of Python 2.7.12; note that the ssl module's new
SSLContext is not supported
* dtls/test/unit.py: changes to support the updated ssl module,
including fix of deprecation warnings
* setup.py: increase version to 1.0.2
This commit is contained in:
1 parent
34dc9ca9cd
commit
622f58358e
7 files changed
+49
-18
No files matched your search
+3
-1
@@ -78,7 +78,6 @@ class BasicSocketTests(unittest.TestCase):
|
||||
|
||||
def test_constants(self):
|
||||
ssl.PROTOCOL_SSLv23
|
||||
ssl.PROTOCOL_SSLv3
|
||||
ssl.PROTOCOL_TLSv1
|
||||
ssl.PROTOCOL_DTLSv1 # added
|
||||
ssl.CERT_NONE
|
||||
@@ -574,6 +573,9 @@ class AsyncoreEchoServer(threading.Thread):
|
||||
# Complete the handshake
|
||||
self.handle_read_event()
|
||||
|
||||
def __hash__(self):
|
||||
return hash(self.socket)
|
||||
|
||||
def readable(self):
|
||||
while self.socket.pending() > 0:
|
||||
self.handle_read_event()
|
||||
|
||||
Reference in new issue
Block a user