From 277a9c68220f8265600e13b9bac944f6f38ea1f4 Mon Sep 17 00:00:00 2001 From: hzq <1558249222han@gamil.com> Date: Sat, 14 Dec 2024 11:44:33 +0800 Subject: [PATCH] perf: Repeat with line 71, read data stream repeatedly --- src/websockets/legacy/framing.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/websockets/legacy/framing.py b/src/websockets/legacy/framing.py index add0c6e0..ca1c26f5 100644 --- a/src/websockets/legacy/framing.py +++ b/src/websockets/legacy/framing.py @@ -87,7 +87,6 @@ async def read( length = head2 & 0b01111111 if length == 126: - data = await reader(2) (length,) = struct.unpack("!H", data) elif length == 127: data = await reader(8)