• last updated 22 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
fix variable name (many thanks to Franz Penz)

whitespace cleanup

add support for deleted users, handle this case centrally

  1. … 12 more files in changeset.
Try to avoid double-counting in request statistics, when a user logs

in. Previously, when a user logs in, the user was counted once as

un-authenticated user, and once as authenticated one.

TODO: when this works sufficiently well, the same should be done

as well for the 24h statistics.

  1. … 1 more file in changeset.
reduce string operations slightly

- set sanitize on logfile writer per default to 0

- change cleanup interval from 1h to 71min, since on the hour interval, there are already many things going on in OpenACS

Rename string_truncate and string_truncate_middle to comply with OpenACS naming convention, create deprecated wrappers, replace occurrences

As string_truncate_middle was defined in xotcl-request-monitor, bring it to acs-tcl instead

    • -10
    • +10
    ./test/throttle_mod-test-procs.tcl
  1. … 10 more files in changeset.
Remove unnecessary 'aa_run_with_teardown'

  1. … 3 more files in changeset.
improve spelling

  1. … 1 more file in changeset.
prefer "nsf::is object" over ":isobject" or "info commands", since it is faster, more generic and can be used in all contexts

  1. … 3 more files in changeset.
make sure, the dump fiile does not grow infinitely

Add automated test for the 'string_truncate_middle'. Many thanks to Hanifa Hasan

file throttle_mod-test-procs.tcl was initially added on branch oacs-5-10.

    • -0
    • +0
    ./test/throttle_mod-test-procs.tcl
improve documentation and make clear that strong dependency

of request monitor on bgdelivery does not exist anymore

use ns_asynclogfile instead of bgdelivery when available

prefer ::acs::icanuse over local tests

  1. … 1 more file in changeset.
improve spelling

  1. … 8 more files in changeset.
whitespace and comment changes

- make sure to get rid over overdue elements from statistics

- improve comments

provide a better rejection message, for over-eager users

Introduce additional parameter "do_slowdown_overactive" (default off) for slowing down overactive users.

previously, this was on (when do_throttle was activated) causing sleep operations. However, even these

sleep operations can kill the server since it also blocks connection threads.

  1. … 1 more file in changeset.
Treat all video/* content types as embedded content.

Background: many video player do a series of range requests (which are typically pretty cheap) that we do not want to block.

remove comma before that

  1. … 9 more files in changeset.
add secondary series with authenticated users

bump version number to 0.52

  1. … 2 more files in changeset.
extend list of embedded content types

- add a minimal overhead job queue for user tracking, when the atomic "nsv_set -reset ..." is available

- bump version number to 0.51

  1. … 3 more files in changeset.
Fix proc doc parameters without description

improve spelling

  1. … 12 more files in changeset.
Revert massive replacement of empty list creation sentences. The use of '[list]' instead of '{}' adds semantics that could be used for performance improvements in the future, such as using a different internal representation. There is already work in this direction, avoiding the generation of the string representation during comparison of empty strings (huge thanks to Stefan Sobernig for the pointer: https://core.tcl.tk/tcl/info/44527c632ed609c2).

  1. … 475 more files in changeset.
Prefer '{}' to '[list]' when creating empty lists

  1. … 225 more files in changeset.