mirror of
https://github.com/GNS3/gns3-server
synced 2025-07-04 13:52:42 +00:00
Looks like even with a 30 second timeout you can still get no data. Change flow control from break to continue to keep main loop runnning.
This commit is contained in:
parent
be82ac869b
commit
bae8aee211
@ -59,8 +59,8 @@ class SFTelnetProxyMuxer:
|
||||
# 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=self.heartbeattimer))
|
||||
if not data:
|
||||
log.debug(f"No data. Not sure if this is possible.")
|
||||
break
|
||||
log.debug(f"No data from socket read, start over read loop.")
|
||||
continue
|
||||
if reader.at_eof():
|
||||
log.info(f"Client {client_info} closed tcp session with eof.")
|
||||
writer.close()
|
||||
|
Loading…
Reference in New Issue
Block a user