• webv4/root/api/events.ssjs

    From echicken@1:103/705 to Git commit to main/sbbs/master on Wed Apr 7 08:51:11 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/40fcaed8eff1bde2fe75eb0a
    Modified Files:
    webv4/root/api/events.ssjs
    Log Message:
    Content-Type not Content-type; delay 1000 ms between event source scans.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to main/sbbs/master on Thu Jun 9 20:29:44 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/d07ae18a92aae1f92825501f
    Modified Files:
    webv4/root/api/events.ssjs
    Log Message:
    Force a garbage collection in the event "wait forever" loopThis appears to fix the "lots of user.dat files open concurrently" behaviorthat remains when a browser/client has the webv4 page open for a longduration.Eventually, the User objects created in this loop would be cleaned (and theuser.dat file descriptors
    closed), but the default garbage collection interval(configurable) is 1000 calls to the CommonOperationCallback function. This couldbe as as long as 1000 times through this loop before GC occurs.Since this is not a performance sensitive loop (we have a call to sleep for afull second) just force a garbage collection for each loop iteration.
    --- SBBSecho 3.15-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)