mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 22:11:14 +02:00
Catch BlockingIOError in ioucon.
This commit is contained in:
1 parent
a0a5705fd8
commit
e817c13738
1 file changed
+4
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user