From f9fd629641892b1c99342be843940134b92531e7 Mon Sep 17 00:00:00 2001 From: John Fleming Date: Sun, 28 Jan 2024 08:39:08 -0500 Subject: [PATCH] Correct comment about shield --- gns3server/utils/asyncio/sftelnetproxymuxer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gns3server/utils/asyncio/sftelnetproxymuxer.py b/gns3server/utils/asyncio/sftelnetproxymuxer.py index 0fdd6415..185d2f1d 100755 --- a/gns3server/utils/asyncio/sftelnetproxymuxer.py +++ b/gns3server/utils/asyncio/sftelnetproxymuxer.py @@ -53,7 +53,7 @@ class SFTelnetProxyMuxer: await asyncio.sleep(1) while True: try: - # Set a timeout for the read operation, without should the socket closes after timeout. + # Set a timeout for the read operation, without should() the socket closes after timeout. data = await asyncio.shield(asyncio.wait_for(reader.read((4*1024*1024)), timeout=2.0)) if not data: log.debug(f"No data. Not sure if this is possible.")