- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
This is a small request-throttle application that handles simple DoS-attacks on the server. A user (request key) is identified via ipAddr or some other key, such as an authenticated userid.
XOTcl Parameters for Class Throttle:
- timeWindow:Time window for computing detailed statistics; can
be configured via OpenACS package parameter
time-window
- timeoutMs: Time window to keep statistics for a user
- startThrottle: If user requests more than this #, her requests are delayed. When larger than toMuch, the parameter is ignored
- toMuch: If user requests more than this #, she is kicked out
The controlling thread contains the classes Users, Throttle, Counter, MaxCounter, ...
- Author:
- Gustaf Neumann
- CVS Identification:
-
$Id: throttle_mod-procs.tcl,v 1.72 2024/10/28 14:58:41 antoniop Exp $
Class Relations
Methods (to be applied on the object)
add_statistics (forward)
add_url_stat (forward)
check (scripted, public)
throttle
check
This method should be called once per request that is monitored. It should be called after authentication such we have already the userid if the user is authenticated.
community_access (scripted)
destroy (scripted)
flush_url_stats (forward)
get_context (scripted)
last100 (forward)
max_values (forward)
ms (scripted)
nr_running (forward)
off (forward)
on (forward)
partialtimes (scripted)
postauth (scripted)
purge_access_stats (forward)
report_url_stats (forward)
running (forward)
server_threads (forward)
statistics (forward)
thread_avgs (forward)
throttle_check (forward)
trace (scripted)
trend (forward)
url_statistics (forward)
user_is_active (forward)
users (forward)
views_per_minute (forward)
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables