Browse Source

Apply new config setting immediately.

git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1634 e5f2f494-b856-4b98-b285-d166d9295462
Likun Zhang 15 years ago
parent
commit
7bf8e98454
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/bin/xfrout/xfrout.py.in

+ 4 - 0
src/bin/xfrout/xfrout.py.in

@@ -320,6 +320,7 @@ def listen_on_xfr_query(unix_socket_server):
 class XfroutServer:
     def __init__(self):
         self._init_config_data()
+        self._unix_socket_server = None
         self._cc = isc.config.ModuleCCSession(SPECFILE_LOCATION, self.config_handler, self.command_handler)
         self._cc.start()
         self._lock = threading.Lock()
@@ -355,6 +356,9 @@ class XfroutServer:
                 continue
             self._config_data[key] = new_config[key]
         
+        if self._unix_socket_server:
+            self._unix_socket_server.update_config_data(new_config)
+
         return answer