Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
ryu/lib/rpc.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/ryu/lib/rpc.py b/ryu/lib/rpc.py
index 42abe70..769cc0d 100644
--- a/ryu/lib/rpc.py
+++ b/ryu/lib/rpc.py
@@ -316,3 +316,11 @@ class Client(object):
raise EOFError("EOF")
self._process_input_notification()
self._process_input_request()
+
+ def peek_notification(self):
+ while True:
+ rlist, _wlist = self._endpoint.selectable()
+ rlist, _wlist, _xlist = select.select(rlist, [], [], 0)
+ if not rlist:
+ break
+ self.receive_notification()
--
1.8.1.5
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel