From f732e94c3f12a595c729489fa32a9bf014f299de Mon Sep 17 00:00:00 2001 From: Marks Polakovs Date: Sun, 12 Apr 2020 23:04:52 +0200 Subject: [PATCH] use readline instead of read --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 93a279e..06d0ad0 100644 --- a/server.py +++ b/server.py @@ -332,7 +332,7 @@ async def telnet_server( ) -> None: global active_sessions, live_session while True: - data = await reader.read(128) + data = await reader.readline() if not data: break try: