• web/root/api/events.ssjs

    From Rob Swindell@1:103/705 to Git commit to sbbs/master on Mon Sep 7 00:33:22 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/2e847de9f934be251c9f7d12
    Modified Files:
    web/root/api/events.ssjs
    Log Message:
    It was observed that httpSess threads would consume ~15% of a CPUUsing Linux top, long-running (hundreds of hours) httpSess threads were seenconsuming ~15% of a CPU core. This loop calls time() and yield() in a tightloop, so instead mswait(50) (milliseconds), which reduces the CPU utilizationconsiderable (down to < 1%), but will slightly impact the frequency withwhich the events callbacks are invoked. A better scheme would be to blockwhile waiting for an event or a timeout (e.g. 1 second), so this is not agreat solution. More of a work-around.
    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)