2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

3011. [func] Change the default query timeout from 30 seconds

to 10.  Allow setting this in named.conf using the new
                        'resolver-query-timeout' option, which specifies a max
                        time in seconds.  0 means 'default' and anything longer
                        than 30 will be silently set to 30. [RT #22852]
This commit is contained in:
Mark Andrews
2011-02-03 05:41:55 +00:00
parent da6fe5c101
commit 000a8970f8
18 changed files with 423 additions and 37 deletions

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: timer.c,v 1.95 2009/10/05 17:30:49 fdupont Exp $ */
/* $Id: timer.c,v 1.96 2011/02/03 05:41:54 marka Exp $ */
/*! \file */
@@ -974,12 +974,13 @@ isc__timermgr_destroy(isc_timermgr_t **managerp) {
LOCK(&manager->lock);
#ifdef USE_SHARED_MANAGER
if (manager->refs > 1) {
manager->refs--;
manager->refs--;
if (manager->refs > 0) {
UNLOCK(&manager->lock);
*managerp = NULL;
return;
}
timermgr = NULL;
#endif /* USE_SHARED_MANAGER */
#ifndef USE_TIMER_THREAD