[svn] commit: r3283 - in /branches/trac382/src/bin/stats: stats.py.in tests/isc/config/ccsession.py
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue Oct 19 14:48:32 UTC 2010
Author: vorner
Date: Tue Oct 19 14:48:31 2010
New Revision: 3283
Log:
Fix busyloop in b10-stats
Use blocking reads of the CCsession. Updated test to include the
optional parameter too.
Modified:
branches/trac382/src/bin/stats/stats.py.in
branches/trac382/src/bin/stats/tests/isc/config/ccsession.py
Modified: branches/trac382/src/bin/stats/stats.py.in
==============================================================================
--- branches/trac382/src/bin/stats/stats.py.in (original)
+++ branches/trac382/src/bin/stats/stats.py.in Tue Oct 19 14:48:31 2010
@@ -233,7 +233,7 @@
"""
check the cc chanel
"""
- return self.cc_session.check_command()
+ return self.cc_session.check_command(False)
def config_handler(self, new_config):
"""
Modified: branches/trac382/src/bin/stats/tests/isc/config/ccsession.py
==============================================================================
--- branches/trac382/src/bin/stats/tests/isc/config/ccsession.py (original)
+++ branches/trac382/src/bin/stats/tests/isc/config/ccsession.py Tue Oct 19 14:48:31 2010
@@ -90,8 +90,8 @@
def close(self):
self._session.close()
- def check_command(self):
- msg, env = self._session.group_recvmsg(False)
+ def check_command(self, nonblock=True):
+ msg, env = self._session.group_recvmsg(nonblock)
if not msg or 'result' in msg:
return
cmd, arg = parse_command(msg)
More information about the bind10-changes
mailing list