From 88b9d946da3b200dbb8546534b860936f3f723b2 Mon Sep 17 00:00:00 2001 From: grossmj Date: Sat, 25 Oct 2014 18:03:24 -0600 Subject: [PATCH] Fixes SecureCRT issue when disconnecting from an IOU device on Windows. --- gns3server/modules/iou/ioucon.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gns3server/modules/iou/ioucon.py b/gns3server/modules/iou/ioucon.py index f00a60fb..cb280fa1 100644 --- a/gns3server/modules/iou/ioucon.py +++ b/gns3server/modules/iou/ioucon.py @@ -224,6 +224,8 @@ class TelnetServer(Console): buf = self._read_cur(bufsize, socket.MSG_DONTWAIT) except BlockingIOError: return None + except ConnectionResetError: + buf = b'' if not buf: self._disconnect(fileno)