Index: openacs-4/packages/xotcl-core/tcl/01-debug-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xotcl-core/tcl/01-debug-procs.tcl,v diff -u -N -r1.93.2.23 -r1.93.2.24 --- openacs-4/packages/xotcl-core/tcl/01-debug-procs.tcl 22 Jul 2020 11:31:25 -0000 1.93.2.23 +++ openacs-4/packages/xotcl-core/tcl/01-debug-procs.tcl 23 Jul 2020 12:24:03 -0000 1.93.2.24 @@ -450,11 +450,21 @@ ns_log Error "ns_ictl trace returned: $errorMsg" } } - # ns_ictl trace idle { - # ns_log notice =====IDLE=====START - # ::xo::broadcast receive - # ns_log notice =====IDLE=====END - # } + + if {![::acs::icanuse "ns_ictl trace idle"]} { + # + # In case the server has way to many connection threads defined, + # broadcast messages might pile up. In these situations, the idle + # callback provides a means to keep these idle connection threads + # uptodate. + # + ns_ictl trace idle { + ns_log notice =====IDLE=====START + ::xo::broadcast receive + ns_log notice =====IDLE=====END + } + } + # # Register::xo::at_delete function only once #