Signed-off-by: FUJITA Tomonori <[email protected]>
---
 ryu/services/protocols/bgp/speaker.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ryu/services/protocols/bgp/speaker.py 
b/ryu/services/protocols/bgp/speaker.py
index e4a9bc9..7b98aa2 100644
--- a/ryu/services/protocols/bgp/speaker.py
+++ b/ryu/services/protocols/bgp/speaker.py
@@ -376,6 +376,8 @@ class BgpProtocol(Protocol, Activity):
         self._sendlock.acquire()
         try:
             self._socket.sendall(msg.serialize())
+        except socket.error as err:
+            self.connection_lost('failed to write to socket')
         finally:
             self._sendlock.release()
 
-- 
1.8.5.2 (Apple Git-48)


------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to