Log of /httpd/flood/trunk/flood_subst_file.c
Parent Directory
|
Revision Log
Revision
696047 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Modified
Tue Sep 16 20:41:45 2008 UTC
(15 years, 10 months ago)
by
jerenkrantz
File length: 7022 byte(s)
Diff to
previous 653656
(
colored)
Fix up flood_subst_file implementation so that we compile again on Mac OS X.
Also fix up various nits, add licensing blocks, and reformat to better follow
coding standards.
* flood_subst_file.c, flood_subst_file.h: Misc. fixes.
Revision
647747 -
(
view)
(
download)
(
annotate)
-
[select for diffs]
Added
Mon Apr 14 12:14:03 2008 UTC
(16 years, 4 months ago)
by
wrowe
Original Path:
httpd/test/trunk/flood/flood_subst_file.c
File length: 6104 byte(s)
Implement a random substitution feature; requires a requesttemplate,
one or more substitution variables of the form ${varname) in the
requesttemplate and a substitution file formatted with one value
per newline delimited line (more than one variable per URL permitted).
The variables and files are referred to as subst variables and subst
files. Each time the URL is sent the subst variable is replaced with
one line randomly selected from the subst file. Any part of the
requesttemplate can be randomly substituted, protocol, host, port, etc.
The algorithm tries to make the creation time of the substitution
independent of the size of the subst file. The randomness of the
selection can be adversely impacted if the sizes of the different
entries in the subst file vary considerably.
Submitted by: Guy Ferraiolo <guyf cnet.com>
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.