From cc68b7f6c67d381c819503af800c029f252835d9 Mon Sep 17 00:00:00 2001 From: Kevin Trocolli Date: Tue, 9 Jan 2024 03:16:31 -0500 Subject: [PATCH] adb: fix timeout issue --- core/aimedb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/aimedb.py b/core/aimedb.py index 2fe1ef7..dbf9761 100644 --- a/core/aimedb.py +++ b/core/aimedb.py @@ -74,7 +74,7 @@ class AimedbServlette(): self.logger.debug(f"Connection made from {writer.get_extra_info('peername')[0]}") while True: try: - data: bytes = await reader.read() + data: bytes = await reader.read(4096) if len(data) == 0: self.logger.debug("Connection closed") return