Signed-off-by: YAMADA Hideki <[email protected]>
---
ryu/app/ws_topology.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/ryu/app/ws_topology.py b/ryu/app/ws_topology.py
index ee63bf8..fadf25f 100644
--- a/ryu/app/ws_topology.py
+++ b/ryu/app/ws_topology.py
@@ -34,6 +34,7 @@ $ sudo mn --controller=remote --topo linear,2
...
"""
+from socket import error as SocketError
from tinyrpc.exc import InvalidReplyError
from ryu.app.wsgi import (
@@ -88,6 +89,9 @@ class WebSocketTopology(app_manager.RyuApp):
rpc_server = rpc_client.get_proxy()
try:
getattr(rpc_server, func_name)(msg)
+ except SocketError:
+ self.logger.debug('WebSocket disconnected: %s' % rpc_client.ws)
+ self.rpc_clients.remove(rpc_client)
except InvalidReplyError as e:
self.logger.error(e)
--
1.7.9.5
------------------------------------------------------------------------------
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