[svn] commit: r1662 - /trunk/src/bin/xfrout/xfrout.py.in
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Mar 31 08:18:24 UTC 2010
Author: zhanglikun
Date: Wed Mar 31 08:18:23 2010
New Revision: 1662
Log:
Fix bugs reported in ticket 125 and 126.
1. Msgq not running will be complained when start xfrout process alone.
2. Fix xfrout hang when xfrout can't get the command response from config manager.
Modified:
trunk/src/bin/xfrout/xfrout.py.in
Modified: trunk/src/bin/xfrout/xfrout.py.in
==============================================================================
--- trunk/src/bin/xfrout/xfrout.py.in (original)
+++ trunk/src/bin/xfrout/xfrout.py.in Wed Mar 31 08:18:23 2010
@@ -26,6 +26,7 @@
from socketserver import *
import os
from isc.config.ccsession import *
+from isc.cc import SessionError
import socket
from optparse import OptionParser, OptionValueError
try:
@@ -322,8 +323,8 @@
self._shutdown_event = threading.Event()
self._cc = isc.config.ModuleCCSession(SPECFILE_LOCATION, self.config_handler, self.command_handler)
self._config_data = self._cc.get_full_config()
+ self._cc.start()
self._start_xfr_query_listener()
- self._cc.start()
def _start_xfr_query_listener(self):
@@ -412,9 +413,12 @@
xfrout_server.run()
except KeyboardInterrupt:
print("[b10-xfrout] exit xfrout process")
- except Exception as e:
- print('[b10-xfrout] ', e)
-
+ except SessionError as e:
+ print('[b10-xfrout] Error creating xfrout, '
+ 'is the command channel daemon running?' )
+ except ModuleCCSessionError as e:
+ print('[b10-xfrout] exit xfrout process:', e)
+
if xfrout_server:
xfrout_server.shutdown()
More information about the bind10-changes
mailing list