From e817c137381e5cb5cbaff2aae70e52c42ca9f14c Mon Sep 17 00:00:00 2001 From: grossmj Date: Thu, 29 May 2014 03:10:45 -0600 Subject: [PATCH] Catch BlockingIOError in ioucon. --- gns3server/modules/iou/ioucon.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gns3server/modules/iou/ioucon.py b/gns3server/modules/iou/ioucon.py index c3d04636..f00a60fb 100644 --- a/gns3server/modules/iou/ioucon.py +++ b/gns3server/modules/iou/ioucon.py @@ -379,7 +379,10 @@ class IOU(Router): return buf def write(self, buf): - self.fd.send(buf) + try: + self.fd.send(buf) + except BlockingIOError: + return def _open(self): self.fd = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM)