gsd 4 months ago
parent
commit
8703e9925f
  1. 7
      transport_tcp.py

7
transport_tcp.py

@ -53,11 +53,8 @@ class TCPTransport:
async def _alive_loop(self): async def _alive_loop(self):
try: try:
while True: while True:
if self.writer: await self.send(b"0")
#logger.debug("Send alive", int(time() - self.socket_start)) await asyncio.sleep(1)
self.writer.write(b"0")
await self.writer.drain()
await asyncio.sleep(1)
except asyncio.CancelledError: except asyncio.CancelledError:
pass pass
except: except:

Loading…
Cancel
Save