Browse Source

For each auth process, Xfrout will create a new thread to handle incoming requests

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac419@4014 e5f2f494-b856-4b98-b285-d166d9295462
Jerry 14 years ago
parent
commit
9abd2de988
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/lib/python/isc/util/socketserver_mixin.py

+ 4 - 3
src/lib/python/isc/util/socketserver_mixin.py

@@ -64,7 +64,7 @@ class NoPollMixIn:
         called in anther thread.  Note, parameter 'poll_interval' is
         just used for interface compatibility; it's never used in this
         function.
-        '''        
+        '''
         while True:
             # block until the self.socket or self.__read_sock is readable
             try:
@@ -74,11 +74,12 @@ class NoPollMixIn:
                     continue
                 else:
                     break
-            
+
             if self.__read_sock in r:
                 break
             else:
-                self._handle_request_noblock()
+                # Create a new thread to handle requests for each auth
+                threading.Thread(target=self._handle_request_noblock).start()
 
         self._is_shut_down.set()