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

@@ -27,6 +27,9 @@ class ExampleImpl(thread_capnp.Example.Server):
def longRunning(self, **kwargs):
return capnp.getTimer().after_delay(1 * 10**9)
def alive(self, **kwargs):
return True
async def myreader(server, reader):
while True: