/[Apache-SVN]/httpd/flood/trunk/config.h.in
ViewVC logotype

Log of /httpd/flood/trunk/config.h.in

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (annotate)
Sticky Revision:

Revision 653656 - (view) (download) (annotate) - [select for diffs]
Modified Tue May 6 00:42:11 2008 UTC (16 years, 3 months ago) by fielding
File length: 3230 byte(s)
Diff to previous 647749 (colored)
promote flood to released products

Revision 647749 - (view) (download) (annotate) - [select for diffs]
Modified Mon Apr 14 12:16:14 2008 UTC (16 years, 4 months ago) by wrowe
Original Path: httpd/test/flood/trunk/config.h.in
File length: 3230 byte(s)
Diff to previous 647747 (colored)
flood is independent of framework, mod_specweb etc


Revision 647747 - (view) (download) (annotate) - [select for diffs]
Modified Mon Apr 14 12:14:03 2008 UTC (16 years, 4 months ago) by wrowe
Original Path: httpd/test/trunk/flood/config.h.in
File length: 3230 byte(s)
Diff to previous 394795 (colored)
  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>



Revision 394795 - (view) (download) (annotate) - [select for diffs]
Modified Mon Apr 17 22:32:59 2006 UTC (18 years, 3 months ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/config.h.in
File length: 3086 byte(s)
Diff to previous 106525 (colored)
Add extraheader, payloadfile attribute to url element; also support custom HTTP
methods.

(This lets flood passably mimic WebDAV requests.)

* flood_round_robin.c
  (url_t): Add method_string, extra_headers fields.
  (round_robin_create_req): Add short-cut to ->extra_headers field; simplify
  request creation based on methods and add in extra headers if present; 
  (parse_xml_url_info): Set method_string on all variants; support
  payloadfile attribute to load the entire payload from a file; include any
  extra headers  - delimit multiple headers with ; for now.
  (round_robin_get_next_url): Fix whitespace.
* flood_profile.h
  (method_e): Denote 'other' methods.
* config.h.in
  (XML_URLLIST_PAYLOAD_FILE, XML_URLLIST_EXTRA_HEADERS): Define.


Revision 106525 - (view) (download) (annotate) - [select for diffs]
Modified Thu Nov 25 00:36:41 2004 UTC (19 years, 8 months ago) by nd
Original Path: httpd/test/trunk/flood/config.h.in
File length: 2991 byte(s)
Diff to previous 104459 (colored)
property cleanup


Revision 104459 - (view) (download) (annotate) - [select for diffs]
Modified Tue Aug 3 10:22:14 2004 UTC (20 years ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/config.h.in
File length: 2991 byte(s)
Diff to previous 103023 (colored)
* Add <proxyurl> child element to <urllist> to request against a proxy.
* Accept HTTP/1.0 responses to HTTP/1.1 requests.


Revision 103023 - (view) (download) (annotate) - [select for diffs]
Modified Thu Mar 18 18:28:08 2004 UTC (20 years, 4 months ago) by aaron
Original Path: httpd/test/trunk/flood/config.h.in
File length: 2950 byte(s)
Diff to previous 101204 (colored)
Add support for content-type in a POST method.

Submitted by:   Philippe Marzouk <phil ozigo.org>
Reviewed by:    Aaron Bannert


Revision 101204 - (view) (download) (annotate) - [select for diffs]
Modified Tue Sep 9 13:59:17 2003 UTC (20 years, 11 months ago) by jacekp
Original Path: httpd/test/trunk/flood/config.h.in
File length: 2902 byte(s)
Diff to previous 101185 (colored)
Remove '-dev' sufix from flood version.


Revision 101185 - (view) (download) (annotate) - [select for diffs]
Modified Sun Sep 7 23:41:57 2003 UTC (20 years, 11 months ago) by jacekp
Original Path: httpd/test/trunk/flood/config.h.in
File length: 2906 byte(s)
Diff to previous 101183 (colored)
Added configversion attribute (root element <flood>) which ties config file structure with
certain flood version and warns user if there is a conflict.


Revision 101183 - (view) (download) (annotate) - [select for diffs]
Modified Sun Sep 7 22:56:53 2003 UTC (20 years, 11 months ago) by jacekp
Original Path: httpd/test/trunk/flood/config.h.in
File length: 2804 byte(s)
Diff to previous 100952 (colored)
Added attribute responsescript (element <url>), which allows flood to
delegate response processing to external script.


Revision 100952 - (view) (download) (annotate) - [select for diffs]
Modified Sat Aug 9 08:19:45 2003 UTC (21 years ago) by jacekp
Original Path: httpd/test/trunk/flood/config.h.in
File length: 2751 byte(s)
Diff to previous 98526 (colored)
we're in dev phase, and it's definitely post 1.0


Revision 98526 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jan 29 06:07:49 2003 UTC (21 years, 6 months ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/config.h.in
File length: 2747 byte(s)
Diff to previous 96834 (colored)
Fixed Win32 crash resulting from strtoll() macro.

This patch addresses a crash caused by the Win32 implementation
of the strtoll() macro in config.h, which is generated from
config.h.in.  This patch fixes config.h.in.  The change will
affect files using strtoll() on Win32 builds with an "old enough"
Microsoft Visual C/C++ compiler.

The addition operator ("+") has higher precedence than the conditional
operator ("a ? b : c").  The portion of the Win32 implementation of the
strtoll() macro in question is below:
  *(e) = (char*)(p) + ((b) == 10) ? strspn((p), "0123456789") : 0
The compiler will evaluate the expression like this:
  *(e) = ( (char*)(p) + ((b) == 10) ) ? strspn((p), "0123456789") : 0
The code was meant to evaluate like this:
  *(e) = (char*)(p) + ( ((b) == 10) ? strspn((p), "0123456789") : 0 )
The code is effectively pointing "e" to the first nondigit character
starting at where "p" points to.  Because of the precendence rules,
the invocation of strtoll() in set_seed() in file flood.c effectively
compiled to this code:
  *(e) = strspn((p), "0123456789")
which yields an invalid address.

The above assignment triggers the compiler warning below.
  flood.c(105) : warning C4047: '=' : 'char *' differs in levels of
  indirection from 'const unsigned int '
The build produces seven occurrences of this warning.  After the
code fix, those seven occurrences disappear.

When applying this fix, you should rebuild all files to ensure they
re-evaluate the corrected strtoll() macro from a newly generated
config.h file.

Reviewed by: Will Rowe


Revision 96834 - (view) (download) (annotate) - [select for diffs]
Modified Mon Sep 16 09:55:07 2002 UTC (21 years, 11 months ago) by jacekp
Original Path: httpd/test/trunk/flood/config.h.in
File length: 2745 byte(s)
Diff to previous 96674 (colored)
Added baseurl tag to urllist. Following config:

<urllist>
   <baseurl>http://www.site.com</baseurl>
   <url>/</url>
   <url>/foo.html</url>
   <url>/cgi-bin/bar.cgi</url>
</urllist>

...hits those URLs:

http://www.site.com/
http://www.site.com/foo.html
http://www.site.com/cgi-bin/bar.cgi

Usefull when dealing with site/app that gets moved around a lot.


Revision 96674 - (view) (download) (annotate) - [select for diffs]
Modified Fri Sep 6 10:16:09 2002 UTC (21 years, 11 months ago) by jacekp
Original Path: httpd/test/trunk/flood/config.h.in
File length: 2706 byte(s)
Diff to previous 96161 (colored)
Added basic auth. Following URL:
<url user="foo" password="bar">http://localhost/auth</url>
...causes appropriate Authorization header to be sent.

You have to know when you need auth enabled. Auth challenge (401 header)
is treated (along with all 4xx type responses) as error.


Revision 96161 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jul 23 18:44:07 2002 UTC (22 years ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/config.h.in
File length: 2634 byte(s)
Diff to previous 95429 (colored)
Heck, why not, right?


Revision 95429 - (view) (download) (annotate) - [select for diffs]
Modified Fri May 31 07:47:15 2002 UTC (22 years, 2 months ago) by wrowe
Original Path: httpd/test/trunk/flood/config.h.in
File length: 2638 byte(s)
Diff to previous 94063 (colored)
  Insist on 64 bits, eh?  I know VC5 doesn't, dunno about VC6.  This gross
  hack isn't quite right yet, but I'll let someone who cares to build on
  VC5 polish it.


Revision 94063 - (view) (download) (annotate) - [select for diffs]
Modified Wed Mar 20 22:27:13 2002 UTC (22 years, 4 months ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/config.h.in
File length: 2417 byte(s)
Diff to previous 94026 (colored)
Make the version number have some meaning.  (We're at m4 supposedly, so
let's call this 0.4.)


Revision 94026 - (view) (download) (annotate) - [select for diffs]
Modified Wed Mar 20 01:35:11 2002 UTC (22 years, 4 months ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/config.h.in
File length: 2448 byte(s)
Diff to previous 92316 (colored)
* Introduce sequence tag to urllist element.  See CHANGES for description.
* Remove shadow declaration of stat in flood_round_robin.c.
* Factor out handling of URI XML fields so that the sequence tag can
  function properly.
* Move around handle_parse_elem so that the sequence code can call it.

Note that in order to calculate how many *real* URLs there will be,
we have to parse the sequence tag twice.  This isn't a big deal since
this will be done when initializing the profile not during request
processing itself.


Revision 92316 - (view) (download) (annotate) - [select for diffs]
Modified Tue Dec 4 10:08:30 2001 UTC (22 years, 8 months ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/config.h.in
File length: 2310 byte(s)
Diff to previous 92314 (colored)
Seed OpenSSL from memory instead of from a rnd file when we don't have
random device support.
(Also deprecate --with-randfile as we never need it anymore.)
Submitted by:	Doug MacEachern
Reviewed by:	Justin Erenkrantz, Aaron Bannert


Revision 92314 - (view) (download) (annotate) - [select for diffs]
Modified Tue Dec 4 09:38:53 2001 UTC (22 years, 8 months ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/config.h.in
File length: 2340 byte(s)
Diff to previous 91991 (colored)
- Look for certs dir in logical places if not overriden.
- Have knowledge of platforms with /dev/random and /dev/urandom where
  OpenSSL will get the entropy on its own anyway.  If --with-randfile is
  not specified, we'll see if it even matters.
- Don't call RAND_load_file if we are relying on /dev/random.


Revision 91991 - (view) (download) (annotate) - [select for diffs]
Modified Fri Nov 16 22:38:12 2001 UTC (22 years, 9 months ago) by aaron
Original Path: httpd/test/trunk/flood/config.h.in
File length: 2292 byte(s)
Diff to previous 90615 (colored)
Added a new parameter --enable-ssl. SSL is enabled by default, so if you
don't have the libs you either have to install them or pass --disable-ssl.

Revamp of the --with-openssl arg to work with the new --enable-ssl arg.
It now just adds the paths to the appropriate compiler/linker flags
and moves on. I left in the -R flag for solaris, but I'm wondering if
I forgot a crossplatform way to do this in libtool. Oh well.

If SSL is enabled (ie not explicitly disabled) it must pass a number of
criteria: existence of various headers, ability to link libssl and
libcrypto (either from given env vars or appropriate --with-openssl
parameters), and the openssl version must be at least 0.9.6. This last
requirement may be further raised to 0.9.6b if the rumors of lower
version crashing under higher load is true.


Revision 90615 - (view) (download) (annotate) - [select for diffs]
Modified Fri Aug 24 04:26:39 2001 UTC (22 years, 11 months ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/config.h.in
File length: 2243 byte(s)
Diff to previous 90415 (colored)
Per Sander, Linux 2.4 returns EAGAIN when we run out of ports.


Revision 90415 - (view) (download) (annotate) - [select for diffs]
Modified Mon Aug 20 19:07:44 2001 UTC (22 years, 11 months ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/config.h.in
File length: 2116 byte(s)
Diff to previous 90276 (colored)
Add startdelay and startcount elements.
This allows flood to ramp up the number of threads it has over time.
It'll sleep for startdelay seconds every time it starts startcount number
of threads.


Revision 90276 - (view) (download) (annotate) - [select for diffs]
Modified Fri Aug 17 07:44:02 2001 UTC (23 years ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/config.h.in
File length: 2024 byte(s)
Diff to previous 90164 (colored)
- Clean up debugging info when using delays.
- Fix error where a url would be chopped off (must follow l.list of apr_text
  objects to be valid).  This should not affect attributes as they are
  handled differently by the expat XML parser.
- Introduce two more random number generators (rand48 and random).  Add
  autoconf test to choose "best" one.  May be good to add support for
  /dev/urandom (whatever the non-blocking one is), but Solaris doesn't have
  it, so I don't care much right now.

  The rand() period is incredibly short.  rand48 and random are supposed to
  have much longer periods.  We'll see...


Revision 90164 - (view) (download) (annotate) - [select for diffs]
Modified Tue Aug 14 20:14:50 2001 UTC (23 years ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/config.h.in
File length: 1902 byte(s)
Diff to previous 90025 (colored)
Rewrite the expression/template code to use variable names (backed by a
hash table) and allow use of regular expressions for the response
template.
The new syntax is as follows:
  ${foo}  substitutes foo's value.
  ${=foo} generates a random number and stores it in foo and substitutes it.
  ([^>]*) (regex sub-expression) coupled with responsename="foo" allows
          that subexpression to be stored in foo based on what is in the
          response from the server.  It will only take the first
          sub-expression in the regex and store it in the value.

Also, remove some silly XML parameters that we no longer need due to
this commit.  Should be a cleaner syntax now.


Revision 90025 - (view) (download) (annotate) - [select for diffs]
Modified Wed Aug 8 03:22:32 2001 UTC (23 years ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/config.h.in
File length: 2071 byte(s)
Diff to previous 90000 (colored)
Change timeout to be 120 seconds.
(JSP compilation can be awfully slow.)


Revision 90000 - (view) (download) (annotate) - [select for diffs]
Modified Tue Aug 7 19:00:23 2001 UTC (23 years ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/config.h.in
File length: 2070 byte(s)
Diff to previous 89966 (colored)
Get OpenSSL code stable.  There are still some errors in the OpenSSL code,
but 95% of the time our threads complete - this is better than it was
(40-60% of our threads would get an error from OpenSSL).

Achieve this by the following actions:
- Remove the cafile logic in our OpenSSL calls as this is buggy code.  Use
  cadir logic instead.  Now defaults to /tmp/certdir.
- Don't use BIO in OpenSSL as this OpenSSL code is buggy.


Revision 89966 - (view) (download) (annotate) - [select for diffs]
Modified Mon Aug 6 23:16:43 2001 UTC (23 years ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/config.h.in
File length: 2070 byte(s)
Diff to previous 89918 (colored)
Add OpenSSL locking routines (doesn't seem to be used, but they say you
should have it - okay...)

Update configure to have randfile (/tmp/.rnd) and cafile (/tmp/certs.pem)
to pass to OpenSSL.  These files must exist (and be valid) or OpenSSL is
going to throw a hissy fit.  Also, use OpenSSL 0.9.6b by default.


Revision 89918 - (view) (download) (annotate) - [select for diffs]
Modified Sat Aug 4 04:26:21 2001 UTC (23 years ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/config.h.in
File length: 2013 byte(s)
Diff to previous 89891 (colored)
Add ability to retrieve some data from the response and place it in
state variables (max of 10).  These "state" variables live for the
life of the profile (i.e. all elements in the urllist).  They may be
referred in any template via $[0-9].  Add ability to store the
entire response (only active if a response template is present).

This works.  Sure.  I'm going home now.


Revision 89891 - (view) (download) (annotate) - [select for diffs]
Modified Fri Aug 3 00:24:18 2001 UTC (23 years ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/config.h.in
File length: 1792 byte(s)
Diff to previous 89888 (colored)
A farmer may now be run for an arbitrary amount of time (specified in
seconds) rather than a specific number of requests.


Revision 89888 - (view) (download) (annotate) - [select for diffs]
Modified Fri Aug 3 00:08:25 2001 UTC (23 years ago) by aaron
Original Path: httpd/test/trunk/flood/config.h.in
File length: 1760 byte(s)
Diff to previous 89886 (colored)
The seed used in the PRNG can now be set in a tag,
so tests based on random values can be reproduced.
The tag is <seed> and is a toplevel tag (ie under
<flood>.. just go look at the examples)

This patch changes more stuff in autoconf files, so
rerun buildconf, ok?


Revision 89886 - (view) (download) (annotate) - [select for diffs]
Modified Thu Aug 2 22:19:49 2001 UTC (23 years ago) by aaron
Original Path: httpd/test/trunk/flood/config.h.in
File length: 1736 byte(s)
Diff to previous 89882 (colored)
Added pre/post delays, as well as a precision amount for each.
All times are in seconds. The actual delays is calculated as:
   actual_delay + (precision * e)
(where e is a number in [-1,1]). I'm using rand() to generate
the 'e' factor, and as this is not threadsafe on some
platforms (I don't really care what the number is, so this
is NBD), I really should change this later to be
something akin to apr_generate_random_bytes().

Also a minor fix to Justin's last update, a symbol wasn't
renamed.

Also moved the place where we increment the current_url to
the next one from get_next_url() to loop_condition(). This
may have side effects later on if someone tries to call
loop_condition() more than once per loop, but right now
I believe it's defined so that we call it only once (and
that can't be overriden).

I updated some autoconf files, so please rerun buildconf.


Revision 89882 - (view) (download) (annotate) - [select for diffs]
Modified Thu Aug 2 21:34:28 2001 UTC (23 years ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/config.h.in
File length: 1570 byte(s)
Diff to previous 89695 (colored)
Add pseudo-random data to a POST payload via the $$ character in the
new payloadtemplate parameter for a URL.


Revision 89695 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jul 25 00:37:27 2001 UTC (23 years ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/config.h.in
File length: 1406 byte(s)
Diff to previous 89692 (colored)
Add delay support to urllist.
<url delay=5>http://foo</url>


Revision 89692 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jul 25 00:12:10 2001 UTC (23 years ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/config.h.in
File length: 1372 byte(s)
Diff to previous 89634 (colored)
If you want to wait 30 seconds for a response, be my guest.


Revision 89634 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jul 19 23:39:59 2001 UTC (23 years ago) by aaron
Original Path: httpd/test/trunk/flood/config.h.in
File length: 1373 byte(s)
Diff to previous 89576 (colored)
Must use patch as described in the STATUS file to bring
APR threads up to speed for flood.

Fix to enable <usefarmer count="xx"> syntax.

Changes to match the above patch.

Fix to enable creation of a child-pool and clear()ing that pool
after each profile is run. (This should reduce memory requirements
of 'flood' dramatically for long-running tests.)


Revision 89576 - (view) (download) (annotate) - [select for diffs]
Added Wed Jul 18 03:33:35 2001 UTC (23 years, 1 month ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/config.h.in
File length: 1332 byte(s)
Initial revision


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.


infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26