"Fossies" - the Fresh Open Source Software Archive

Member "mod_throttle-3.1.2/CHANGES.txt" (3 Dec 2000, 7233 Bytes) of package /linux/www/apache_httpd_modules/old/mod_throttle312.tgz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 --3.1.2--
    2 
    3    1.	Added missing #ifdef THROTTLE_CLIENT_IP & #ifdef THROTTLE_REMOTE_USER
    4    	around checks in policy_concurrent().
    5 
    6 --3.1.1--
    7 
    8    1.	Found race condition in get_client_ip() and get_remote_user() that
    9    	could result in duplicate entries appearing in the lists. Should
   10    	now be fixed.
   11 
   12    2.	Enhanced code to reduce instances where % goes way above 100%. This
   13    	occurs because the request bytes sent is logged at the end of the
   14    	request, so that dynamic documents can be handled. This enhancement
   15    	will identify simple file requests and count them before the policy
   16    	is applied. Dynamic requests are still logged at the end of the
   17    	request.
   18 
   19    3.	Merged some critical sections to reduce number of calls to
   20    	critical_aquire() and critical_release().
   21 
   22 ---3.1---
   23 
   24    1.	Back by popular demand, the % of limit reached column in the
   25    	status display.
   26 
   27    2.	Removed ThrottleSlack.  This global could poses problems for the
   28    	Original policy when the slack is greater than the period. Now the
   29    	slack is calculated as 1/5 the period.
   30 
   31    3.	USE_SYSTEM_V_SHARED_MEMORY sm_pool_create() now clears the assigned
   32    	block of shared memory.
   33 
   34    4.	Fixed Speed policy so that when when we fall below the limit, the
   35    	previous applied delay is reset to zero for the status display.
   36 
   37    5.	Fixed Speed policy overflow for large limits when the period resets.
   38 
   39    6.	Fixed Original policy problem concerning old byte unit calculation and
   40    	the change to kbyte units which meant the delays never kicked in.
   41 
   42    7.	No more throttling of the throttle status display. Also the bytes
   43    	sent, etc. are not counted in the stats.
   44 
   45    8.	Modified ThrottleUser to support "*", which loads all the users
   46    	from the system user database.  Also "/path/to/htpasswd" file that
   47    	provide a list of real users, virtual user which have no user id
   48    	are ignored. Requested by Wolf <wolf_pro@inbox.ru>.
   49 
   50    9.	Added ThrottleClientIP, throttle-clients to monitor and throttle
   51    	client IP addresses. Can be disabled with #undef THROTTLE_CLIENT_IP
   52    	or specifying a pool size of 0. Requested by Os Tyler
   53    	<os@nothingspecial.com>
   54 
   55   10.	Added ThrottleRemoteUser, throttle-remote-users to monitor and
   56    	throttle autheticated remote users. Can be disabled with
   57    	#undef THROTTLE_REMOTE_USER or specifying a pool size of 0.
   58    	Requested by Wolf <wolf_pro@inbox.ru>.
   59 
   60   11.	Added throttle hierarchy: client-ip, authenticated user, local user,
   61   	server. On succesful requests, this has the affect of several
   62   	different throttles monitoring the same request. Variation of a
   63   	requested by David M. Shirley <david@webquarry.com>.
   64 
   65   12.	Format of mod_throttle.runtime file altered to support new data
   66   	elements and sections.
   67 
   68   13.	Added new policy Idle.
   69 
   70   14.	Changed format of elapsed time display: d+H:M.S Leading zero elements
   71   	are not shown.
   72 
   73   15.	Added new status column: idle time
   74 
   75   16.	Change status displays to use style sheets. Therefore for best viewing
   76   	you need a CSS capable browser.
   77 
   78   17.	Fix bug in byte_size() to proper display 1500M. Only exact multiple of
   79   	1024 get a M or G suffix by design.
   80 
   81 ---3.0---
   82 
   83    1.	Complete overhaul the shared memory and semaphore code:
   84 
   85   	   a)	POSIX shared memory & semaphore finally work (tested Solaris 5.7)
   86 	   b)	The shared memory segment and semaphores are now released
   87 	   	properly when Apache is shutdown or restarted.
   88   	   c)	No more hard-wired shared memory keys; this should allow
   89   	   	more than one parent Apache process to run without conflicts
   90   	   	with shared memory & semaphore keys.
   91 	   d)	There is no hardwired limit on the number of throttles we can
   92 	   	have in shared memory.  Only limited now by the size of shared
   93 	   	memory itself.
   94 
   95    2.	Added support for <directory> and <location> blocks.
   96 
   97    3.	Created alternative throttle policies that can be applied per user,
   98    	directory, location, or host.
   99 
  100    4.	Runtime information preserved across shutdown & restarts.
  101 
  102    5.	Revamped throttle status display:
  103 
  104    	   a)	ability to reset individual or all stats
  105    	   b)	dump & restore the stats while running
  106    	   c)	Fixed the "(unknown)" host name for the parent server.
  107 
  108    6.	Changed the busy error status to 503 HTTP_SERVICE_UNAVAILABLE.
  109 
  110    7.	ThrottleMaster removed in favour of using ServerAlias.
  111 
  112    8.	Smallest measure of volumn (bytes sent) is now kilo-byte units. This
  113    	allows for longer periods between roll-over adjustments in all the
  114    	policies. The GB/month column dropped in favour of the KBytes-sent
  115 
  116    9.	Added the ability to view induhvidual throttles.
  117 
  118   10.	Generated patches for mod_userdir to support /~user/throttle-me handler
  119   	and mod_proxy to support monitoring of bytes_sent through proxy requests.
  120 
  121 ----2.12----
  122 
  123 1.	Do not refresh when set to zero (0).
  124 
  125 2.	Added ThrottleAveragePeriod & ThrottleDivideBy to allow fine tuning of
  126 	the averaging algorithm.  Shorter periods should be more frequent
  127 	adjustments in the statistics, while a higher divide-by value would mean
  128 	smaller changes in the statistics.
  129 
  130 	It is uncertain if ThrottleDivideBy provides any significant advantage.
  131 	Consider it experimental and may be removed or modified at a later date.
  132 
  133 ----2.11----
  134 
  135 1.	From: "Harry W. Waddell" <waddell@caravan.com>
  136 	Works on NetBSD 1.4.3_ALPHA on i386 hardware. Should work on any NetBSD
  137 	1.4.x or 1.5 system with the following change:
  138 
  139 	append to line 182:
  140 
  141 		|| defined(__NetBSD__)
  142 
  143 	[ACH - This change has now been applied to the source.]
  144 
  145 ----2.10----
  146 
  147 1.	Fix for FreeBSD; mod_throttle will now compile against the System V
  148 	API, instead of POSIX.  The reason the POSIX code is disabled is
  149 	because named semaphores are not supported under FreeBSD and Linux
  150 	at the moment; after which the shared memory code would need testing.
  151 
  152 2.	Tested on SunOS 5.6.  Apache must be built with:
  153 
  154 		--enable-rule=SHARED_CORE
  155 
  156 3.	It is not recommended to build mod_throttle as a static module into
  157 	Apache.  However, if you really want to do this, Martin Lathoud
  158 	<nytral@enDirect.qc.ca>, recommends instead of specifying
  159 	--activate-module for the Apache configure script, to use:
  160 
  161 		--add-module=src/modules/throttle/mod_throttle.c
  162 		--enable-shared=throttle
  163 
  164 	Then its a simple matter to turn sharing off or on.  This assumes you
  165 	unpacked the mod_throttle source within the Apache source tree.
  166 
  167 ----2.09----
  168 
  169 1.	Switched to using APXS module building.
  170 2.	Added version for Apache server-info display.
  171 3.	Added ThrottleContentType for text/plain output. (Highly requested
  172 	by script writers for statistics.)
  173 4.	Added author's mailto: in footer of status display.
  174 5.	DISABLED POSIX code.  Never did work and have no time nor POSIX
  175 	machine to address it.
  176 6.	Added very brief licensing terms as requested by the Debian folks
  177 	See top of mod_throttle.c.
  178 
  179 ----2.08----
  180 
  181   o	Fix include order of <sys/sem.h>.  I miss-applied the suggested fix
  182 	for union semun.
  183 
  184 ----2.07----
  185 
  186   o	Fixed missing comma bug.
  187   o     Added fix for union semun being missing on some systems.
  188   o     Added untested code in #ifdef POLITE_RESPONSE for when a virtual host
  189 	is throttled.
  190   o	Add ThrottleMaxDelay, see index.shtml for more information
  191 
  192 ----2.06----
  193 
  194 No log kept.
  195 
  196 
  197 ---1.0---
  198 
  199 See Mark Lovell code.