From 87eef545e13d5c4229e90c92ec9b0acbf697db04 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Tue, 23 Feb 2016 16:54:12 +0100 Subject: [PATCH] Correctly close the telnet connection for docker Fix #427 --- gns3server/utils/asyncio/telnet_server.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gns3server/utils/asyncio/telnet_server.py b/gns3server/utils/asyncio/telnet_server.py index 72731ddd..cdc7fcd2 100644 --- a/gns3server/utils/asyncio/telnet_server.py +++ b/gns3server/utils/asyncio/telnet_server.py @@ -82,6 +82,9 @@ class AsyncioTelnetServer: yield from self._process(network_reader, network_writer) except ConnectionResetError: with (yield from self._lock): + + network_writer.close() + if self._reader_process == network_reader: self._reader_process = None # Cancel current read from this reader