Browse code

respect idletimeout

git-svn: trunk@1318

Tomasz Kojm authored on 2005/02/07 04:45:58
Showing 1 changed files
... ...
@@ -557,7 +557,7 @@ int acceptloop_th(int socketd, struct cl_node *root, const struct cfgstruct *cop
557 557
 	     */
558 558
 	    thrmgr_destroy(thr_pool);
559 559
 	    root = reload_db(root, copt, FALSE);
560
-	    if((thr_pool=thrmgr_new(max_threads, 30, scanner_thread)) == NULL) {
560
+	    if((thr_pool=thrmgr_new(max_threads, idletimeout, scanner_thread)) == NULL) {
561 561
 		logg("!thrmgr_new failed\n");
562 562
 		pthread_mutex_unlock(&reload_mutex);
563 563
 		exit(-1);