/[Apache-SVN]/httpd/flood/trunk/flood_round_robin.c
ViewVC logotype

Log of /httpd/flood/trunk/flood_round_robin.c

Parent Directory Parent Directory | Revision Log Revision Log


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

Revision 696055 - (view) (download) (annotate) - [select for diffs]
Modified Tue Sep 16 21:01:30 2008 UTC (15 years, 10 months ago) by jerenkrantz
File length: 49777 byte(s)
Diff to previous 695998 (colored)
Fix up various compiler warnings.

* flood_net_ssl.c, flood_net_ssl.h
  (ssl_read_socket): Switch from int to apr_size_t.
* flood_socket_keepalive.c
  (keepalive_read_chunk, keepalive_load_resp, keepalive_recv_resp): Switch
  from int to apr_size_t.
* flood_round_robin.c
  (round_robin_postprocess): Switch from int to apr_size_t.
* flood_net.c, flood_net.h
  (read_socket): Switch from int to apr_size_t.


Revision 695998 - (view) (download) (annotate) - [select for diffs]
Modified Tue Sep 16 18:28:46 2008 UTC (15 years, 10 months ago) by jerenkrantz
File length: 49770 byte(s)
Diff to previous 653656 (colored)
Fix compilation errors with newer gcc versions.

* flood_round_robin.c
  (round_robin_profile_init): Give compiler a bigger clue about what to cast.

Submitted by: Ohad Lutzky
Reviewed by: jerenkrantz


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: 49766 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/flood_round_robin.c
File length: 49766 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/flood_round_robin.c
File length: 49766 byte(s)
Diff to previous 490946 (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 490946 - (view) (download) (annotate) - [select for diffs]
Modified Fri Dec 29 07:49:58 2006 UTC (17 years, 7 months ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 45042 byte(s)
Diff to previous 490939 (colored)
Update flood to the new license header.

* flood/NOTICE: Update the copyright year to the date of first publication.

* flood/flood_farmer.c, flood/flood_report_relative_times.h,
  flood/flood_simple_reports.h, flood/flood_test.c, flood/flood.c,
  flood/flood_farmer.h, flood/flood_socket_generic.c, flood/flood_farm.c,
  flood/flood_socket_generic.h, flood/flood_farm.h, flood/flood_config.c,
  flood/flood_net_ssl.c, flood/flood_config.h, flood/flood_net_ssl.h,
  flood/flood_socket_keepalive.c, flood/flood_easy_reports.c,
  flood/flood_round_robin.c, flood/flood_socket_keepalive.h,
  flood/flood_easy_reports.h, flood/flood_round_robin.h, flood/flood_net.c,
  flood/flood_net.h, flood/flood_profile.c, flood/flood_profile.h,
  flood/flood_report_relative_times.c, flood/flood_simple_reports.c:
  Update to new license header.

(Used committers/relicense/src/perl/update-AL20.pl)


Revision 490939 - (view) (download) (annotate) - [select for diffs]
Modified Fri Dec 29 07:34:12 2006 UTC (17 years, 7 months ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 44859 byte(s)
Diff to previous 490925 (colored)
Better support Win32/VS2005 out-of-the-box with trunk.

* flood_farm.c
  (run_farm): Accept APR_INCOMPLETE from apr_thread_join for Win32.

* flood/flood_pcre.c, flood/flood_pcre.h: Import PCRE wrappers from httpd.

* flood/flood_round_robin.c: Bring in PCRE wrappers if needed.

* flood/NOTICE: Update; note PCRE wrappers inclusion.

* flood/flood.vcproj: Add VS2005 project file.


Revision 490925 - (view) (download) (annotate) - [select for diffs]
Modified Fri Dec 29 06:42:08 2006 UTC (17 years, 7 months ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 44800 byte(s)
Diff to previous 394795 (colored)
Always initialize ->method_string.

* flood_round_robin.c
  (parse_xml_url_info): If we don't have a method attribute, set ->method_string
  to GET.


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/flood_round_robin.c
File length: 44764 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/flood_round_robin.c
File length: 42316 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/flood_round_robin.c
File length: 42316 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/flood_round_robin.c
File length: 41481 byte(s)
Diff to previous 102613 (colored)
Add support for content-type in a POST method.

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


Revision 102613 - (view) (download) (annotate) - [select for diffs]
Modified Mon Feb 9 08:12:56 2004 UTC (20 years, 6 months ago) by jacekp
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 41042 byte(s)
Diff to previous 102612 (colored)
fixed typo.


Revision 102612 - (view) (download) (annotate) - [select for diffs]
Modified Sun Feb 8 23:34:41 2004 UTC (20 years, 6 months ago) by jacekp
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 41038 byte(s)
Diff to previous 102138 (colored)
migrating to ALv2


Revision 102138 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jan 1 13:38:37 2004 UTC (20 years, 7 months ago) by nd
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 43064 byte(s)
Diff to previous 102040 (colored)
update license and copyright to 2004


Revision 102040 - (view) (download) (annotate) - [select for diffs]
Modified Fri Dec 12 22:16:54 2003 UTC (20 years, 8 months ago) by jacekp
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 43064 byte(s)
Diff to previous 101189 (colored)
Sync with APR

Submitted by: Norman Tuttle <ntuttle@photon.poly.edu>


Revision 101189 - (view) (download) (annotate) - [select for diffs]
Modified Mon Sep 8 02:22:31 2003 UTC (20 years, 11 months ago) by jwoolley
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 43073 byte(s)
Diff to previous 101183 (colored)
make this follow the apr idioms a bit more closely.


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/flood_round_robin.c
File length: 42487 byte(s)
Diff to previous 98570 (colored)
Added attribute responsescript (element <url>), which allows flood to
delegate response processing to external script.


Revision 98570 - (view) (download) (annotate) - [select for diffs]
Modified Mon Feb 3 17:11:02 2003 UTC (21 years, 6 months ago) by nd
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 38125 byte(s)
Diff to previous 98528 (colored)
bah! what a boring job - update license to 2003.


Revision 98528 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jan 29 06:16:59 2003 UTC (21 years, 6 months ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 38120 byte(s)
Diff to previous 96834 (colored)
Fixed PASSTHROUGH collision in flood_round_robin.c.

This patch fixes compile errors in flood_round_robin.c
resulting from the Windows header file wingdi.h.  That
header file defines PASSTHROUGH, which is the same
identifier used as an enumerated constant for type
expand_param_e.  The enumerated constants now use a
prefix, "EPE_", to help make their names more unique.

Below are the compile errors this patch addresses:
<snip>

Submitted by: Phi-Long Tran <ptran@pobox.com>
Reviewed by: Justin Erenkrantz


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/flood_round_robin.c
File length: 38088 byte(s)
Diff to previous 96722 (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 96722 - (view) (download) (annotate) - [select for diffs]
Modified Mon Sep 9 09:36:01 2002 UTC (21 years, 11 months ago) by jacekp
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 37646 byte(s)
Diff to previous 96721 (colored)
fixed few typos in previous commit (doh! I need more coffe ;)


Revision 96721 - (view) (download) (annotate) - [select for diffs]
Modified Mon Sep 9 09:24:28 2002 UTC (21 years, 11 months ago) by jacekp
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 37643 byte(s)
Diff to previous 96674 (colored)
fixed few code blocks to be 'style guide' compilant


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/flood_round_robin.c
File length: 37300 byte(s)
Diff to previous 96673 (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 96673 - (view) (download) (annotate) - [select for diffs]
Modified Fri Sep 6 09:42:56 2002 UTC (21 years, 11 months ago) by jacekp
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 35716 byte(s)
Diff to previous 96672 (colored)
Check for regexp failure and print nice error message


Revision 96672 - (view) (download) (annotate) - [select for diffs]
Modified Fri Sep 6 09:35:55 2002 UTC (21 years, 11 months ago) by jacekp
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 35554 byte(s)
Diff to previous 96279 (colored)
Catch every possible flaw in URL.


Revision 96279 - (view) (download) (annotate) - [select for diffs]
Modified Thu Aug 1 22:25:35 2002 UTC (22 years ago) by aaron
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 34785 byte(s)
Diff to previous 95926 (colored)
Catch badly formed URLs and exit. This is a good temporary fix,
but eventually we should probably rethink how we catch errors
and bubble them up instead of exiting right away.

Submitted by:   Jacek Prucia <jacek.prucia@7bulls.com>
Reviewed by:    Aaron Bannert


Revision 95926 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jul 1 17:38:16 2002 UTC (22 years, 1 month ago) by aaron
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 34528 byte(s)
Diff to previous 95431 (colored)
Implement a new verification routine that doesn't produce false
negatives for HTTP/1.0 connections, and treats 2xx and 3xx HTTP
status returns as successes.

Submitted by: Jacek Prucia <jacek.prucia@7bulls.com>
Reviewed by:  Aaron Bannert


Revision 95431 - (view) (download) (annotate) - [select for diffs]
Modified Fri May 31 07:59:27 2002 UTC (22 years, 2 months ago) by wrowe
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 34049 byte(s)
Diff to previous 94169 (colored)
  Fix massive header bogosity


Revision 94169 - (view) (download) (annotate) - [select for diffs]
Modified Mon Mar 25 23:41:16 2002 UTC (22 years, 4 months ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 33773 byte(s)
Diff to previous 94029 (colored)
Return APR_SUCCESS if we get to this point in the function.


Revision 94029 - (view) (download) (annotate) - [select for diffs]
Modified Wed Mar 20 02:24:38 2002 UTC (22 years, 4 months ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 33748 byte(s)
Diff to previous 94026 (colored)
Make the sequence tag be recursive.  (i.e. multiple sequence tags
can be used together.)


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/flood_round_robin.c
File length: 33232 byte(s)
Diff to previous 92717 (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 92717 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jan 3 15:45:01 2002 UTC (22 years, 7 months ago) by aaron
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 28338 byte(s)
Diff to previous 91250 (colored)
Fix unterminated-string bug that would give us corrupted cookie data when
multiple cookies were used.

Submitted by:	Chris Williams <chriwill@cmguc.com>
Reviewed by:	Aaron Bannert


Revision 91250 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 3 01:24:01 2001 UTC (22 years, 10 months ago) by fielding
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 28332 byte(s)
Diff to previous 90528 (colored)
Fix a bunch of warnings.


Revision 90528 - (view) (download) (annotate) - [select for diffs]
Modified Thu Aug 23 00:19:58 2001 UTC (22 years, 11 months ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 28160 byte(s)
Diff to previous 90495 (colored)
Fix the regex code to work on Linux - which doesn't have rm_sp and rm_ep
fields in regmatch_t.


Revision 90495 - (view) (download) (annotate) - [select for diffs]
Modified Wed Aug 22 16:16:46 2001 UTC (22 years, 11 months ago) by martin
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 28145 byte(s)
Diff to previous 90414 (colored)
On FreeBSD, the return of regexec() is 0 or REG_NOMATCH, and REG_OK is undefined


Revision 90414 - (view) (download) (annotate) - [select for diffs]
Modified Mon Aug 20 19:05:16 2001 UTC (22 years, 11 months ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 28018 byte(s)
Diff to previous 90276 (colored)
Sync up with Doug^H^H^H^HPerl's apr_uri changes.


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/flood_round_robin.c
File length: 28036 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/flood_round_robin.c
File length: 27936 byte(s)
Diff to previous 90026 (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 90026 - (view) (download) (annotate) - [select for diffs]
Modified Wed Aug 8 03:24:25 2001 UTC (23 years ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 32998 byte(s)
Diff to previous 90016 (colored)
You must allocate memory before calling apr_cpystrn.


Revision 90016 - (view) (download) (annotate) - [select for diffs]
Modified Tue Aug 7 22:35:35 2001 UTC (23 years ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 32930 byte(s)
Diff to previous 90008 (colored)
I think we need to be able to expand the responsetemplate parameters for
state values.


Revision 90008 - (view) (download) (annotate) - [select for diffs]
Modified Tue Aug 7 20:25:36 2001 UTC (23 years ago) by aaron
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 31448 byte(s)
Diff to previous 89929 (colored)
This patch allows flood to mimmic the special case where
known browsers will generate a POST request that has no
body and no Content-length header. Trying to achieve this
without this patch would get you a segfault. Now a url
formed like this will give a POST with no Content-length:
<url method="POST">http://www.example.com/submit.cgi</url>
...and a url formed like this will submit a body:
<url method="POST" payload="foo">http://www.example.com/bar.cgi</url>

For the sake of completion, I will be adding one addition change
so that we can also generate POST requests that have a
"Content-length: 0" header.


Revision 89929 - (view) (download) (annotate) - [select for diffs]
Modified Sun Aug 5 18:32:49 2001 UTC (23 years ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 30548 byte(s)
Diff to previous 89922 (colored)
Fix buffer overflow condition in cpy variable used in parse_param_string


Revision 89922 - (view) (download) (annotate) - [select for diffs]
Modified Sat Aug 4 16:44:52 2001 UTC (23 years ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 30181 byte(s)
Diff to previous 89918 (colored)
Make the match be on a single-line.
So, the "foo$$bar" must be on the same line or we don't consider that a match.
(lines dictated by \n character).


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/flood_round_robin.c
File length: 29703 byte(s)
Diff to previous 89886 (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 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/flood_round_robin.c
File length: 25045 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/flood_round_robin.c
File length: 20143 byte(s)
Diff to previous 89764 (colored)
Add pseudo-random data to a POST payload via the $$ character in the
new payloadtemplate parameter for a URL.


Revision 89764 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jul 29 15:43:07 2001 UTC (23 years ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 16750 byte(s)
Diff to previous 89695 (colored)
Add HTTP Keep-Alive support (rudimentary, but functional).

This is done by adding two new hooks:
open_req - Opens a socket (send_req used to do this implicitly).
create_req - Constructs the request (used to be part of get_next_url).

The open_req is executed *before* the create_req because we need to know
if we are a keepalive request and only the socket code knows whether we
are keepalive or not.  This is a slight performance penalty on non-keepalive
requests because we are creating the request buffer *after* we have opened
the socket.  We could do a "create_sock" that does everything but connect
and sets the keepalive flag?  I'll discuss this with Aaron on Monday.

We now have a field in the request that specifies if it should be
Keep-Alive or not.  Also, the response has a keepalive field to indicate
whether the connection was keptalive.  If the connection was not keptalive,
then the socket should be closed at each iteration.


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/flood_round_robin.c
File length: 16786 byte(s)
Diff to previous 89689 (colored)
Add delay support to urllist.
<url delay=5>http://foo</url>


Revision 89689 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jul 25 00:09:51 2001 UTC (23 years ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 15932 byte(s)
Diff to previous 89633 (colored)
Add query string support.


Revision 89633 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jul 19 22:54:30 2001 UTC (23 years ago) by fielding
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 15485 byte(s)
Diff to previous 89579 (colored)
Add the ASF License to files that were missing it to verify that this
is being contributed to the ASF.


Revision 89579 - (view) (download) (annotate) - [select for diffs]
Added Wed Jul 18 03:42:18 2001 UTC (23 years, 1 month ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/flood_round_robin.c
File length: 15417 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