From 10abb2a086ca32c7d1bdd948e40445930db7ac68 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Tue, 3 Sep 2024 15:24:48 -0400 Subject: [PATCH] flashtool: increase default read timeout Signed-off-by: Eric Callahan bytes: return await asyncio.wait_for(self._reader.read(n), timeout) async def readexactly( - self, n: int, timeout: Optional[float] = 2 + self, n: int, timeout: Optional[float] = 5. ) -> bytes: return await asyncio.wait_for(self._reader.readexactly(n), timeout) async def readuntil( - self, sep: bytes = b"\x03", timeout: Optional[float] = 2 + self, sep: bytes = b"\x03", timeout: Optional[float] = 5. ) -> bytes: return await asyncio.wait_for(self._reader.readuntil(sep), timeout)