mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
Catch BlockingIOError in ioucon.
This commit is contained in:
parent
a0a5705fd8
commit
e817c13738
@ -379,7 +379,10 @@ class IOU(Router):
|
|||||||
return buf
|
return buf
|
||||||
|
|
||||||
def write(self, buf):
|
def write(self, buf):
|
||||||
|
try:
|
||||||
self.fd.send(buf)
|
self.fd.send(buf)
|
||||||
|
except BlockingIOError:
|
||||||
|
return
|
||||||
|
|
||||||
def _open(self):
|
def _open(self):
|
||||||
self.fd = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM)
|
self.fd = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM)
|
||||||
|
Loading…
Reference in New Issue
Block a user