diff --git a/examples/async_server.py b/examples/async_server.py index 0fb54be..3230bd3 100755 --- a/examples/async_server.py +++ b/examples/async_server.py @@ -16,12 +16,12 @@ class ExampleImpl(thread_capnp.Example.Server): "Implementation of the Example threading Cap'n Proto interface." async def subscribeStatus(self, subscriber, **kwargs): - await asyncio.sleep(1) + await asyncio.sleep(0.1) await subscriber.status(True) await self.subscribeStatus(subscriber) async def longRunning(self, **kwargs): - await asyncio.sleep(1) + await asyncio.sleep(0.1) async def new_connection(stream): diff --git a/examples/async_ssl_server.py b/examples/async_ssl_server.py index 3d84e2d..2c66722 100755 --- a/examples/async_ssl_server.py +++ b/examples/async_ssl_server.py @@ -21,12 +21,12 @@ class ExampleImpl(thread_capnp.Example.Server): "Implementation of the Example threading Cap'n Proto interface." async def subscribeStatus(self, subscriber, **kwargs): - await asyncio.sleep(1) + await asyncio.sleep(0.1) await subscriber.status(True) await self.subscribeStatus(subscriber) async def longRunning(self, **kwargs): - await asyncio.sleep(1) + await asyncio.sleep(0.1) def alive(self, **kwargs): return True