Adding reconnecting async ssl example

- async_reconnecting_ssl_client.py will automatically close and
reconnect to a server when it becomes available (rather than hanging or
dying when the server disappears)
This commit is contained in:
Jacob Alexander
2019-10-05 14:50:56 -07:00
parent 722579d671
commit 940ab9916d
4 changed files with 169 additions and 0 deletions

View File

@@ -50,3 +50,10 @@ def test_ssl_async_example():
server = 'async_ssl_server.py'
client = 'async_ssl_client.py'
run_subprocesses(address, server, client)
def test_ssl_reconnecting_async_example():
address = 'localhost:36435'
server = 'async_ssl_server.py'
client = 'async_reconnecting_ssl_client.py'
run_subprocesses(address, server, client)