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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

Revision 697920 - (view) (download) (annotate) - [select for diffs]
Modified Mon Sep 22 18:13:46 2008 UTC (15 years, 10 months ago) by jerenkrantz
File length: 10100 byte(s)
Diff to previous 653656 (colored)
Protect relative times report output with a mutex to avoid overlap.

* flood_config.h
  (config_t): Add thread mutex to config structure.
* flood_farm.c
  (run_farm): Create thread mutex when we create farmers structure.
* flood_report_relative_times.c
  (relative_report_t): New structure to hold pointer to a config.
  (relative_times_report_init): Create report structure and stash config.
  (relative_times_process_stats): Use thread mutex to lock printf calls.
* CHANGES: Update.


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: 10023 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_farm.c
File length: 10023 byte(s)
Diff to previous 490946 (colored)
flood is independent of framework, mod_specweb etc


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_farm.c
File length: 10023 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_farm.c
File length: 9840 byte(s)
Diff to previous 394790 (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 394790 - (view) (download) (annotate) - [select for diffs]
Modified Mon Apr 17 22:24:19 2006 UTC (18 years, 3 months ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/flood_farm.c
File length: 9802 byte(s)
Diff to previous 106525 (colored)
Fix corruption when we have multiple usefarmer's without a count.

* flood_farm.c
  (run_farm): If we don't see a count attribute, increment by one.


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_farm.c
File length: 9651 byte(s)
Diff to previous 102613 (colored)
property cleanup


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_farm.c
File length: 9651 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_farm.c
File length: 9647 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_farm.c
File length: 11673 byte(s)
Diff to previous 98570 (colored)
update license and copyright to 2004


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_farm.c
File length: 11673 byte(s)
Diff to previous 95431 (colored)
bah! what a boring job - update license to 2003.


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_farm.c
File length: 11668 byte(s)
Diff to previous 92875 (colored)
  Fix massive header bogosity


Revision 92875 - (view) (download) (annotate) - [select for diffs]
Modified Thu Jan 17 01:01:41 2002 UTC (22 years, 7 months ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/flood_farm.c
File length: 11535 byte(s)
Diff to previous 92200 (colored)
Clean up includes


Revision 92200 - (view) (download) (annotate) - [select for diffs]
Modified Tue Nov 27 19:05:05 2001 UTC (22 years, 8 months ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/flood_farm.c
File length: 11524 byte(s)
Diff to previous 91251 (colored)
apr_proc_wait changed prototypes.


Revision 91251 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 3 01:33:00 2001 UTC (22 years, 10 months ago) by fielding
Original Path: httpd/test/trunk/flood/flood_farm.c
File length: 11551 byte(s)
Diff to previous 91100 (colored)
silence annoying warnings


Revision 91100 - (view) (download) (annotate) - [select for diffs]
Modified Fri Sep 21 10:40:23 2001 UTC (22 years, 10 months ago) by martin
Original Path: httpd/test/trunk/flood/flood_farm.c
File length: 11533 byte(s)
Diff to previous 90619 (colored)
Attempt to make flood compile again with recent API change for apr_proc_wait()


Revision 90619 - (view) (download) (annotate) - [select for diffs]
Modified Fri Aug 24 05:59:58 2001 UTC (22 years, 11 months ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/flood_farm.c
File length: 11528 byte(s)
Diff to previous 90615 (colored)
Okay, here's the "real" commit log for the fork()-based implementation of
flood.

- Remove FLOOD_USE_THREADS as we have no way of determining if we have
  threads other than APR.  (We'd say that threads were always enabled.)
  I feel comfortable using APR's thread detection rather than mucking
  with parameters ourselves.
- Add strtoq conversion for FreeBSD that #defines it to strtoll.  This
  is a tad cheesy.  Thoughts?  I don't want to have #ifdef HAVE_STRTOLL
  and #ifdef HAVE_STRTOQ all over the place.  Smells like an APR function.
- Remove forking stuff in flood.c as it doesn't make sense to fork() here
  anyway as this is only bootstrap code.
- Make reports output either the current thread id or the pid
- Don't do OpenSSL locking when we aren't threaded
- Not all OpenSSL versions (FreeBSD 4.2 has 0.9.5a) has AUTO_RETRY.  So,
  only set that option if we have that symbol.

So, we now support FreeBSD.  Go forth.


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/flood_farm.c
File length: 11491 byte(s)
Diff to previous 90596 (colored)
Per Sander, Linux 2.4 returns EAGAIN when we run out of ports.


Revision 90596 - (view) (download) (annotate) - [select for diffs]
Modified Thu Aug 23 23:21:56 2001 UTC (22 years, 11 months ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/flood_farm.c
File length: 10055 byte(s)
Diff to previous 90422 (colored)
Fix the ramp-up code so that it reads the XML value and then sleeps correctly.


Revision 90422 - (view) (download) (annotate) - [select for diffs]
Modified Mon Aug 20 20:21:34 2001 UTC (22 years, 11 months ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/flood_farm.c
File length: 10055 byte(s)
Diff to previous 90415 (colored)
Actually get the staggered start to work correctly.

This required fixing up/rewriting the XML parsing for the farm as it
only expected one attribute to be in the usefarmer element - which is
now not the case...


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/flood_farm.c
File length: 9799 byte(s)
Diff to previous 89968 (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 89968 - (view) (download) (annotate) - [select for diffs]
Modified Tue Aug 7 00:03:39 2001 UTC (23 years ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/flood_farm.c
File length: 8276 byte(s)
Diff to previous 89958 (colored)
Make that line be only present when debugging.


Revision 89958 - (view) (download) (annotate) - [select for diffs]
Modified Mon Aug 6 22:16:21 2001 UTC (23 years ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/flood_farm.c
File length: 8251 byte(s)
Diff to previous 89675 (colored)
Move the initialize farmer comment to a debug only statement.


Revision 89675 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jul 24 06:45:19 2001 UTC (23 years ago) by aaron
Original Path: httpd/test/trunk/flood/flood_farm.c
File length: 8226 byte(s)
Diff to previous 89637 (colored)
Brings flood up to date with latest APR thread API updates.


Revision 89637 - (view) (download) (annotate) - [select for diffs]
Modified Fri Jul 20 03:40:08 2001 UTC (23 years ago) by aaron
Original Path: httpd/test/trunk/flood/flood_farm.c
File length: 8168 byte(s)
Diff to previous 89634 (colored)
Make worker threads call apr_thread_exit() to signify when
they exit properly.

Also fixed my lame formatting -- verdammt .emacs!


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/flood_farm.c
File length: 7882 byte(s)
Diff to previous 89633 (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 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_farm.c
File length: 6996 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_farm.c
File length: 4287 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