[svn] commit: r4014 - /branches/trac419/src/lib/python/isc/util/socketserver_mixin.py
BIND 10 source code commits
bind10-changes at lists.isc.org
Mon Dec 27 03:37:31 UTC 2010
Author: chenzhengzhang
Date: Mon Dec 27 03:37:31 2010
New Revision: 4014
Log:
For each auth process, Xfrout will create a new thread to handle incoming requests
Modified:
branches/trac419/src/lib/python/isc/util/socketserver_mixin.py
Modified: branches/trac419/src/lib/python/isc/util/socketserver_mixin.py
==============================================================================
--- branches/trac419/src/lib/python/isc/util/socketserver_mixin.py (original)
+++ branches/trac419/src/lib/python/isc/util/socketserver_mixin.py Mon Dec 27 03:37:31 2010
@@ -64,7 +64,7 @@
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 @@
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()
More information about the bind10-changes
mailing list