summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKurt Roeckx <kurt@roeckx.be>2018-10-13 17:38:59 +0200
committerMatěj Cepl <mcepl@cepl.eu>2018-10-30 15:30:43 +0100
commit1576f1e6409ed06b22758a832f3970aebea72657 (patch)
treec4872a7ffb088e9df002a6f0bd69aa4d70c9abd6 /tests
parent4fbc70fc26482f488c6da739563cb37b5316a2ef (diff)
downloadm2crypto-1576f1e6409ed06b22758a832f3970aebea72657.tar.gz
Send the last message of the handshake before closing the connection
Diffstat (limited to 'tests')
-rw-r--r--tests/test_bio_ssl.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_bio_ssl.py b/tests/test_bio_ssl.py
index 3d087b0..1f9ae89 100644
--- a/tests/test_bio_ssl.py
+++ b/tests/test_bio_ssl.py
@@ -58,6 +58,9 @@ class HandshakeClient(threading.Thread):
else:
handshake_complete = True
+ output_token = writebio.read()
+ if output_token is not None:
+ sock.sendall(output_token)
sock.close()