Commit d30412f4 authored by Likun Zhang's avatar Likun Zhang
Browse files

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.

git-svn-id: svn:// e5f2f494-b856-4b98-b285-d166d9295462
parent 8ad048eb
......@@ -26,6 +26,7 @@ from isc.auth import sqlite3_ds
from socketserver import *
import os
from isc.config.ccsession import *
from import SessionError
import socket
from optparse import OptionParser, OptionValueError
......@@ -322,8 +323,8 @@ class XfroutServer:
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()
def _start_xfr_query_listener(self):
......@@ -412,9 +413,12 @@ if '__main__' == __name__:
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:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment