From 08cb3de6837c11074dfdc11a8cba74410be48fe5 Mon Sep 17 00:00:00 2001 From: grossmj Date: Mon, 19 May 2014 22:21:15 -0600 Subject: [PATCH] Fix a potential issue in ioucon. --- gns3server/modules/iou/ioucon.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gns3server/modules/iou/ioucon.py b/gns3server/modules/iou/ioucon.py index a30c66e9..9fda1717 100644 --- a/gns3server/modules/iou/ioucon.py +++ b/gns3server/modules/iou/ioucon.py @@ -411,8 +411,11 @@ class IOU(Router): log.debug("Waiting to connect to {}".format(self.ttyS)) time.sleep(RETRY_DELAY) except Exception as e: - raise NetioError("Couldn't connect to socket {}: {}" - .format(self.ttyS, e)) + if e.errno == 111: # connection refused + log.debug("Waiting to connect to {}".format(self.ttyS)) + time.sleep(RETRY_DELAY) + else: + raise NetioError("Couldn't connect to socket {}: {}".format(self.ttyS, e)) else: break