Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:780: Inside #if undefined(NO_SLOW_REQ_BT)
   if (count > 0) set ("slow_req_bt_count", count - 1);       if (thread == backend_thread && !slow_be_call_out) {    // Avoid false alarms for the backend thread if we got here due to    // a race. Should perhaps have something like this for the handler    // threads too, but otoh races are more rare there due to the    // longer timeouts.    }       else { -  report_debug ("###### %s 0x%x has been busy for more than %g seconds.\n", +  string th_name = +  ((thread != backend_thread) && thread_name(thread, 1)) || ""; +  if (sizeof(th_name)) +  th_name = " - " + th_name + " -"; +  report_debug ("###### %s 0x%x%s has been busy for more than %g seconds.\n",    thread == backend_thread ? "Backend thread" : "Thread", -  thread->id_number(), timeout); +  thread->id_number(), th_name, timeout);    describe_all_threads (0, threads_disabled);    }       threads_disabled = 0; // Paranoia.   }      #endif // !NO_SLOW_REQ_BT      // // This is easier than when there are no threads.   // // See the discussion below. :-)