* Improved the thread pool logic so that we don't end up creating dozens of extra...
[citadel.git] / webcit / sysdep.c
index fbe16ca0ac61b574c5279d060eed5f40dcf26621..b3470a042c1362da057ef630d04f1a105ee5b70c 100644 (file)
@@ -204,6 +204,8 @@ void worker_entry(void)
                }
                if (ssock < 0 ) continue;
 
+               check_thread_pool_size();
+
                /* Now do something. */
                if (msock < 0) {
                        if (ssock > 0) close (ssock);
@@ -429,8 +431,6 @@ void spawn_another_worker_thread()
        pthread_attr_t attr;    /* Thread attributes */
        int ret;
 
-       lprintf(3, "Creating a new thread.\n");
-
        ++num_threads_existing;
        ++num_threads_executing;