[svn] commit: r2218 - /experiments/fujiwara-stats/src/lib/python/isc/config/ccsession.py

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Jun 22 11:41:32 UTC 2010


Author: fujiwara
Date: Tue Jun 22 11:41:32 2010
New Revision: 2218

Log:
Test for nonblocking check_command and no-recvmsg check_command

Modified:
    experiments/fujiwara-stats/src/lib/python/isc/config/ccsession.py

Modified: experiments/fujiwara-stats/src/lib/python/isc/config/ccsession.py
==============================================================================
--- experiments/fujiwara-stats/src/lib/python/isc/config/ccsession.py (original)
+++ experiments/fujiwara-stats/src/lib/python/isc/config/ccsession.py Tue Jun 22 11:41:32 2010
@@ -169,11 +169,14 @@
         """Close the session to the command channel"""
         self._session.close()
 
-    def check_command(self):
+    def check_command(self, nonblock = False):
         """Check whether there is a command or configuration update
            on the channel. Call the corresponding callback function if
            there is."""
-        msg, env = self._session.group_recvmsg(False)
+        msg, env = self._session.group_recvmsg(nonblock)
+        self.check_command_without_recvmsg(msg, env)
+
+    def check_command_without_recvmsg(self, msg, env):
         # should we default to an answer? success-by-default? unhandled error?
         if msg and not 'result' in msg:
             answer = None




More information about the bind10-changes mailing list