Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
 ryu/lib/rpc.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ryu/lib/rpc.py b/ryu/lib/rpc.py
index 0322e8e..42abe70 100644
--- a/ryu/lib/rpc.py
+++ b/ryu/lib/rpc.py
@@ -127,7 +127,7 @@ class EndPoint(object):
         self._notifications = deque()
         self._responses = {}
         self._incoming = 0  # number of incoming messages in our queues
-        self.closed_by_peer = False
+        self._closed_by_peer = False
 
     def selectable(self):
         rlist = [self._sock]
@@ -155,7 +155,7 @@ class EndPoint(object):
         select.select(rlist, wlist, rlist + wlist)
 
     def serve(self):
-        while not self.closed_by_peer:
+        while not self._closed_by_peer:
             self.block()
             self.process()
 
@@ -197,7 +197,7 @@ class EndPoint(object):
             if not packet:
                 if packet is not None:
                     # socket closed by peer
-                    self.closed_by_peer = True
+                    self._closed_by_peer = True
                 break
             self._encoder.get_and_dispatch_messages(packet, self._table)
         return self._incoming > 0
-- 
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

Reply via email to