/[Apache-SVN]/httpd/httpd/trunk/support/ab.c
ViewVC logotype

Log of /httpd/httpd/trunk/support/ab.c

Parent Directory Parent Directory | Revision Log Revision Log


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

Revision 833583 - (view) (annotate) - [select for diffs]
Modified Fri Nov 6 22:33:37 2009 UTC (2 weeks, 6 days ago) by trawick
File length: 78941 byte(s)
Diff to previous 826497 (colored)
update pollset to reflect changed connection state before closing the socket;
otherwise the pollset-remove can crash (at least with select-based poll, since
fd is now -1)

Revision 826497 - (view) (annotate) - [select for diffs]
Modified Sun Oct 18 19:02:20 2009 UTC (5 weeks, 4 days ago) by sf
File length: 78941 byte(s)
Diff to previous 819702 (colored)
ab: Fix segfault in case the argument for -n is a very large number.

PR: 47178
Submitted by: Philipp Hagemeister <oss phihag.de>
Reviewed by: Stefan Fritsch

Revision 819702 - (view) (annotate) - [select for diffs]
Modified Mon Sep 28 20:12:31 2009 UTC (8 weeks, 3 days ago) by trawick
File length: 78732 byte(s)
Diff to previous 819695 (colored)
when a request body is sent, just display "Total body sent"
in the summary instead of making up the past tense of an 
HTTP method (POST-ed or PUT)

Revision 819695 - (view) (annotate) - [select for diffs]
Modified Mon Sep 28 19:51:50 2009 UTC (8 weeks, 3 days ago) by jorton
File length: 78970 byte(s)
Diff to previous 819298 (colored)
* support/ab.c (output_results): Fix gcc warning on LP64 - field
  width passed via '*' must be an int.

Revision 819298 - (view) (annotate) - [select for diffs]
Modified Sun Sep 27 12:54:50 2009 UTC (2 months ago) by trawick
File length: 78963 byte(s)
Diff to previous 819242 (colored)
refactor the representation of HTTP method and whether to send
a body, fixing these insignificant bugs:

* method name displayed in a debug message was wrong in some
  cases
* specifying conflicting HTTP methods on the command-line
  displayed an invalid message in some cases

Revision 819242 - (view) (annotate) - [select for diffs]
Modified Sun Sep 27 01:53:14 2009 UTC (2 months ago) by fuankg
File length: 78580 byte(s)
Diff to previous 819239 (colored)
fixed compatibility to Openssl < 0.9.7g;
sync'd compatibility to Openssl >= 0.9.9 with 2.2.x branch.

Revision 819239 - (view) (annotate) - [select for diffs]
Modified Sun Sep 27 00:28:27 2009 UTC (2 months ago) by trawick
File length: 78374 byte(s)
Diff to previous 818204 (colored)
small code cleanups for POST/PUT, especially to combine common code
exit if the file to POST/PUT can't be read

Revision 818204 - (view) (annotate) - [select for diffs]
Modified Wed Sep 23 18:57:07 2009 UTC (2 months ago) by poirier
File length: 78597 byte(s)
Diff to previous 811806 (colored)
Fix a segfault in ab when run in verbose mode using https.

PR: 46393
Submitted by: Stefan Fritsch <sf sfritsch.de>, Ryan Niebur
Reviewed by: poirier

Revision 811806 - (view) (annotate) - [select for diffs]
Modified Sun Sep 6 11:03:14 2009 UTC (2 months, 3 weeks ago) by minfrin
File length: 78626 byte(s)
Diff to previous 798943 (colored)
Add support for HTTP PUT to ab.
Submiited by: Jeff Barnes <jbarnesweb yahoo.com>

Revision 798943 - (view) (annotate) - [select for diffs]
Modified Wed Jul 29 15:15:38 2009 UTC (3 months, 4 weeks ago) by trawick
File length: 77806 byte(s)
Diff to previous 759832 (colored)
ab: Fix broken error messages after resolver or connect() failures.

The APR error code was truncated because ab used an incorrect data
type.


Revision 759832 - (view) (annotate) - [select for diffs]
Modified Mon Mar 30 02:19:02 2009 UTC (7 months, 4 weeks ago) by covener
File length: 77761 byte(s)
Diff to previous 750108 (colored)
  *) ab: Fix a 100% CPU loop on platforms where a failed non-blocking connect
     returns EINPROGRESS and a subsequent poll() returns only POLLERR.
     Observed on HP-UX. 


Revision 750108 - (view) (annotate) - [select for diffs]
Modified Wed Mar 4 19:13:07 2009 UTC (8 months, 3 weeks ago) by trawick
File length: 77509 byte(s)
Diff to previous 750094 (colored)
Use APR_POLLSET_NOCOPY for better performance with some pollset implementations.

Revision 750094 - (view) (annotate) - [select for diffs]
Modified Wed Mar 4 18:34:17 2009 UTC (8 months, 3 weeks ago) by trawick
File length: 77588 byte(s)
Diff to previous 749747 (colored)
repeat apr_pollset_poll() while it returns EINTR

Revision 749747 - (view) (annotate) - [select for diffs]
Modified Tue Mar 3 20:53:18 2009 UTC (8 months, 3 weeks ago) by trawick
File length: 77524 byte(s)
Diff to previous 749714 (colored)
remove unreachable code

Revision 749714 - (view) (annotate) - [select for diffs]
Modified Tue Mar 3 19:49:54 2009 UTC (8 months, 3 weeks ago) by rpluem
File length: 77549 byte(s)
Diff to previous 749466 (colored)
* Remove unused variable.

Revision 749466 - (view) (annotate) - [select for diffs]
Modified Mon Mar 2 23:17:53 2009 UTC (8 months, 3 weeks ago) by sctemme
File length: 77568 byte(s)
Diff to previous 749445 (colored)
Clean up more compiler emits.  Add CHANGES entry, credit Kasper for the OpenSSL STACK fix

Revision 749445 - (view) (annotate) - [select for diffs]
Modified Mon Mar 2 21:49:51 2009 UTC (8 months, 3 weeks ago) by trawick
File length: 77467 byte(s)
Diff to previous 749438 (colored)
axe a fearful comment that was addressed before committing r749438

Revision 749438 - (view) (annotate) - [select for diffs]
Modified Mon Mar 2 21:17:43 2009 UTC (8 months, 3 weeks ago) by trawick
File length: 77505 byte(s)
Diff to previous 748396 (colored)
ab: Fix maintenance of the pollset to resolve EINPROGRESS errors 
with kqueue (BSD/OS X) and excessive CPU with event ports (Solaris).

The apr_pollset API requires that a socket be removed from
the pollset whenever there is a change to the requested events.
The socket must also be removed when it is closed.  This wasn't
completely implemented.

PR: 44584

Revision 748396 - (view) (annotate) - [select for diffs]
Modified Fri Feb 27 05:16:18 2009 UTC (8 months, 4 weeks ago) by sctemme
File length: 78096 byte(s)
Diff to previous 726884 (colored)
The development trunk of OpenSSL has tightened up the type safety of the STACK construct
and the functions that manipulate it.  Make httpd trunk compile against OpenSSL HEAD
as well as OpenSSL 0.9.8j.  Also, get rid of some warnings.

Revision 726884 - (view) (annotate) - [select for diffs]
Modified Tue Dec 16 00:08:01 2008 UTC (11 months, 1 week ago) by takashi
File length: 78078 byte(s)
Diff to previous 667275 (colored)
* Change some "apr_palloc / memcpy" to apr_pstrmemdup

PR: 39519
Submitted by: Christophe JAILLET <christophe.jaillet wanadoo.fr>

* Remove unnecessary casts

Revision 667275 - (view) (annotate) - [select for diffs]
Modified Thu Jun 12 22:26:30 2008 UTC (17 months, 2 weeks ago) by jim
File length: 78127 byte(s)
Diff to previous 657433 (colored)
clear out bogus whitespace

Revision 657433 - (view) (annotate) - [select for diffs]
Modified Sat May 17 19:32:01 2008 UTC (18 months, 1 week ago) by rpluem
File length: 78128 byte(s)
Diff to previous 656400 (colored)
* Include <limits.h> earlier if available since INT_MAX is defined there on
  Windows and we need INT_MAX already for the definition of MAX_REQUESTS.

PR: 45024

Revision 656400 - (view) (annotate) - [select for diffs]
Modified Wed May 14 20:08:45 2008 UTC (18 months, 2 weeks ago) by rpluem
File length: 78099 byte(s)
Diff to previous 655654 (colored)
* Check for failure of apr_file_info_get call

Reported By: BOYA SUN <boya.sun case.edu>

Revision 655654 - (view) (annotate) - [select for diffs]
Modified Mon May 12 21:24:26 2008 UTC (18 months, 2 weeks ago) by fielding
File length: 77903 byte(s)
Diff to previous 655637 (colored)
Improve client performance by clearing connection pool instead
of destroying it.

PR 40054
Submitted by: Brad Roberts <braddr puremagic.com>

Revision 655637 - (view) (annotate) - [select for diffs]
Modified Mon May 12 20:53:13 2008 UTC (18 months, 2 weeks ago) by fielding
File length: 77892 byte(s)
Diff to previous 655214 (colored)
Don't stop sending a request if EAGAIN is returned, which will only
happen if both the write and subsequent wait are returning EAGAIN,
and count posted bytes correctly when the initial write of a request
is not complete.

PR 10038, 38861, 39679
Submitted by: Patrick McManus <mcmanus datapower.com> (in 2003)
              Stefan Fleiter <stefan.fleiter web.de>  (in 2006)
              and Davanum Srinivas (in 2006).  Committed patch
              contains parts of all three, tweaked by Roy (2008).

Revision 655214 - (view) (annotate) - [select for diffs]
Modified Sun May 11 00:36:27 2008 UTC (18 months, 2 weeks ago) by fielding
File length: 78133 byte(s)
Diff to previous 617890 (colored)
Overhaul ab.c stats collection and reporting to avoid integer
truncation and time divisions within the test loop, retain
native time resolution until output, remove unused data,
avoid structure copies, consistently round milliseconds, and
generally avoid losing accuracy of calculation due to type casts.

Incidentally fixes output bug on gnuplot (seconds were being
output as microseconds).  It would make more sense to output
gnuplot stats as microseconds after the start of test, but
this change returns us to consistency with pre-apr versions of ab.

PR: 44878, 44931.

Revision 617890 - (view) (annotate) - [select for diffs]
Modified Sat Feb 2 20:36:18 2008 UTC (21 months, 3 weeks ago) by rpluem
File length: 77370 byte(s)
Diff to previous 612954 (colored)
* Use a 64 bit unsigned int instead of a signed long to count the bytes
  transferred to avoid integer overflows.

PR: 44346

Revision 612954 - (view) (annotate) - [select for diffs]
Modified Thu Jan 17 20:01:55 2008 UTC (22 months, 1 week ago) by rpluem
File length: 77238 byte(s)
Diff to previous 573101 (colored)
* Do not try to read non existing response bodies of HEAD requests.

PR: 34275
Submitted by: Takashi Sato <serai lans-tv.com>
Reviewed by: rpluem

Revision 573101 - (view) (annotate) - [select for diffs]
Modified Wed Sep 5 23:19:51 2007 UTC (2 years, 2 months ago) by wrowe
File length: 77151 byte(s)
Diff to previous 541138 (colored)
Kill the compiler emit - casting struct * to char * (as defined
in openssl 0.9.8e).  Easiest is to cast through void *.

Revision 541138 - (view) (annotate) - [select for diffs]
Modified Thu May 24 02:19:04 2007 UTC (2 years, 6 months ago) by sctemme
File length: 77143 byte(s)
Diff to previous 526872 (colored)
Explain that POST data should be sent as the correct MIME type. 
Submitted by Vincent Bray noodlet at gmail dot com, 
edited and reviewed by sctemme

Revision 526872 - (view) (annotate) - [select for diffs]
Modified Mon Apr 9 18:50:28 2007 UTC (2 years, 7 months ago) by sctemme
File length: 76855 byte(s)
Diff to previous 526584 (colored)
Correct behavior of HTTP request headers sent by ab in presence of -H command-
line overrides.  Previously, ab would concatenate a supplied -H User-Agent: 
header to the existing one, and send duplicate headers if either -H Host: or
-H Accept: were specified on the command line. 

Now, the default headers are not sent if they are overridden using the -H 
command-line flag. 

Submitted by:  Arvind Srinivasan arvind.srinivasan  sun.com
Reviewed by: sctemme
PR: 31268, 26554

Revision 526584 - (view) (annotate) - [select for diffs]
Modified Sun Apr 8 17:44:57 2007 UTC (2 years, 7 months ago) by sctemme
File length: 75575 byte(s)
Diff to previous 516175 (colored)
The apr_port_t type is unsigned, but ab was using a signed format code in
its reports. PR 42070. Submitted by Takashi Sato serai  lans-tv.com, 
reviewed by sctemme.

Revision 516175 - (view) (annotate) - [select for diffs]
Modified Thu Mar 8 21:00:07 2007 UTC (2 years, 8 months ago) by trawick
File length: 75575 byte(s)
Diff to previous 420983 (colored)
ab: Add -r option to continue after socket receive errors.

Submitted by: Filip Hanik <devlist hanik.com>
Reviewed by: trawick


Revision 420983 - (view) (annotate) - [select for diffs]
Modified Tue Jul 11 20:33:53 2006 UTC (3 years, 4 months ago) by fielding
File length: 75135 byte(s)
Diff to previous 413861 (colored)
update license header text

Revision 413861 - (view) (annotate) - [select for diffs]
Modified Tue Jun 13 10:51:54 2006 UTC (3 years, 5 months ago) by colm
File length: 75004 byte(s)
Diff to previous 396300 (colored)
A keepalive response need not neccessarily have included any content-length
header, handle this case properly for 304 responses. PR39789


Revision 396300 - (view) (annotate) - [select for diffs]
Modified Sun Apr 23 18:04:17 2006 UTC (3 years, 7 months ago) by colm
File length: 74812 byte(s)
Diff to previous 395228 (colored)
when compiling statistics, only interate accross requests which occured.

Revision 395228 - (view) (annotate) - [select for diffs]
Modified Wed Apr 19 12:11:27 2006 UTC (3 years, 7 months ago) by colm
File length: 74664 byte(s)
Diff to previous 394765 (colored)
Update the copyright year in all .c, .h and .xml files

Revision 394765 - (view) (annotate) - [select for diffs]
Modified Mon Apr 17 20:09:50 2006 UTC (3 years, 7 months ago) by colm
File length: 74664 byte(s)
Diff to previous 390519 (colored)
Update the copyright notice to reflect that changes have gone in this year

Revision 390519 - (view) (annotate) - [select for diffs]
Modified Fri Mar 31 22:06:14 2006 UTC (3 years, 7 months ago) by colm
File length: 74664 byte(s)
Diff to previous 390511 (colored)
Correct a dumb typo

Revision 390511 - (view) (annotate) - [select for diffs]
Modified Fri Mar 31 21:54:25 2006 UTC (3 years, 7 months ago) by colm
File length: 74663 byte(s)
Diff to previous 390504 (colored)
  * Add siege-like behaviour to ApacheBench; output the results, as they have
    accrued so far, when the user interrupts with ctrl-c. As the signal handler 
    is non-reentrant, we don't need volatiles, and the operations all look
    signal-safe.

  * Update the base version, since handling a signal differently is an external
    API change of sorts.

  * set the LastChangedRevision svn property, as ab.c has $Rev $ embedded, so
    it really should be.

Revision 390504 - (view) (annotate) - [select for diffs]
Modified Fri Mar 31 21:28:36 2006 UTC (3 years, 7 months ago) by colm
File length: 74418 byte(s)
Diff to previous 349415 (colored)
Give users the ability to set the window size for apache bench runs. Useful
for benchmarking largefile downloads.

Revision 349415 - (view) (annotate) - [select for diffs]
Modified Mon Nov 28 16:16:21 2005 UTC (4 years ago) by jorton
File length: 73704 byte(s)
Diff to previous 332306 (colored)
* modules/ssl/ssl_scache_dc.c (ssl_scache_dc_retrieve): Fix warning
with OpenSSL 0.9.8a.

* support/ab.c (ssl_print_cb, ssl_print_cert_info): Fix warnings with
OpenSSL 0.9.8a.

Revision 332306 - (view) (annotate) - [select for diffs]
Modified Thu Nov 10 15:11:44 2005 UTC (4 years ago) by jim
File length: 73693 byte(s)
Diff to previous 314844 (colored)
No functional Change: Removing trailing whitespace. This also
means that "blank" lines consisting of just spaces or
tabs are now really blank lines

Revision 314844 - (view) (annotate) - [select for diffs]
Modified Wed Oct 12 11:04:18 2005 UTC (4 years, 1 month ago) by jorton
File length: 73894 byte(s)
Diff to previous 170612 (colored)
* support/ab.c (test): Increment count of started requests when a
non-blocking connect completes; avoids case where more requests are
made than intended.

PR: 36966

Revision 170612 - (view) (annotate) - [select for diffs]
Modified Tue May 17 15:34:43 2005 UTC (4 years, 6 months ago) by jorton
File length: 73859 byte(s)
Diff to previous 161485 (colored)
* support/ab.c: Rewrite SSL support so that it works reliably, and
enable it by default when the --enable-ssl is passed to configure.
Adds support for -Z and -f arguments to tweak SSL protocol options.

Submitted by: Masaoki Kobayashi <masaoki techfirm.co.jp>

Revision 161485 - (view) (annotate) - [select for diffs]
Modified Fri Apr 15 15:22:50 2005 UTC (4 years, 7 months ago) by jorton
File length: 73188 byte(s)
Diff to previous 161483 (colored)
* support/ab.c (open_postfile): Use apr_file_read_full, tidy up error
messages, remove redundant variable.s

Revision 161483 - (view) (annotate) - [select for diffs]
Modified Fri Apr 15 15:20:28 2005 UTC (4 years, 7 months ago) by jorton
File length: 73371 byte(s)
Diff to previous 161437 (colored)
* support/ab.c (test): Treat POST data as a binary blob not a C
string.

PR: 12981
Submitted by: Matthew H. Gerlach <mgerlach@lightsurf.com>

Revision 161437 - (view) (annotate) - [select for diffs]
Modified Fri Apr 15 10:51:44 2005 UTC (4 years, 7 months ago) by jorton
File length: 73362 byte(s)
Diff to previous 151408 (colored)
Fix and prevent some segfaults in ab:

* support/ab.c (main): Fail if given concurrency level greater than
number of requests, to prevent segfaults later.
(ssl_print_cert_info): Use the correct buffer size.
(ssl_start_connect): SSL_get_peer_cert_chain doesn't bump refcounts,
so don't free the cert chain here.
(test): Use both calloc parameters (unrelated cleanup).

Revision 151408 - (view) (annotate) - [select for diffs]
Modified Fri Feb 4 20:28:49 2005 UTC (4 years, 9 months ago) by jerenkrantz
File length: 73205 byte(s)
Diff to previous 123918 (colored)
Update copyright year to 2005 and standardize on current copyright owner line.

Revision 123918 - (view) (annotate) - [select for diffs]
Modified Mon Jan 3 00:38:24 2005 UTC (4 years, 10 months ago) by fielding
File length: 73225 byte(s)
Diff to previous 106103 (colored)
Update copyright notice to new format to show what needs
to be done for all of trunk.


Revision 106103 - (view) (annotate) - [select for diffs]
Modified Sun Nov 21 18:50:36 2004 UTC (5 years ago) by nd
File length: 73185 byte(s)
Diff to previous 104217 (colored)
general property cleanup

Revision 104217 - (view) (annotate) - [select for diffs]
Modified Sat Jul 10 07:18:50 2004 UTC (5 years, 4 months ago) by pquerna
File length: 73185 byte(s)
Diff to previous 104078 (colored)
Small fix on ab's use of sprintf().

PR: 28204
Submitted by: Erik Weide <erik.weidel mplus-technologies.de>

Revision 104078 - (view) (annotate) - [select for diffs]
Modified Tue Jun 29 13:33:24 2004 UTC (5 years, 5 months ago) by martin
File length: 72971 byte(s)
Diff to previous 103697 (colored)
Use standardized names for ISO-8859-1, see http://www.iana.org/assignments/character-sets
(Using the name iso8859-1 may still work, because it is aliased in apr-iconv/ccs/charset.aliases)

Revision 103697 - (view) (annotate) - [select for diffs]
Modified Tue May 18 19:21:35 2004 UTC (5 years, 6 months ago) by clar
File length: 72969 byte(s)
Diff to previous 103135 (colored)
replaced tabs with spaces and aligned indentation within brackets

Revision 103135 - (view) (annotate) - [select for diffs]
Modified Thu Mar 25 00:05:00 2004 UTC (5 years, 8 months ago) by clar
File length: 66048 byte(s)
Diff to previous 103035 (colored)
ab mixing mean and median values, also wrong time values for start and connect when doing keep alive

Revision 103035 - (view) (annotate) - [select for diffs]
Modified Fri Mar 19 15:39:45 2004 UTC (5 years, 8 months ago) by clar
File length: 65872 byte(s)
Diff to previous 103015 (colored)
Using ap_max() to ensure no negative values are stored in data structure.

Revision 103015 - (view) (annotate) - [select for diffs]
Modified Wed Mar 17 23:16:33 2004 UTC (5 years, 8 months ago) by madhum
File length: 65806 byte(s)
Diff to previous 103011 (colored)
Add Missing parenthesis !

Revision 103011 - (view) (annotate) - [select for diffs]
Modified Wed Mar 17 18:22:35 2004 UTC (5 years, 8 months ago) by madhum
File length: 65805 byte(s)
Diff to previous 103000 (colored)
Limit the concurrency to MAX_CONCURRENCY.
Otherwise, ab may dump core (calloc fails) when a arbitrarily huge value
is used.

Revision 103000 - (view) (annotate) - [select for diffs]
Modified Wed Mar 17 00:06:44 2004 UTC (5 years, 8 months ago) by clar
File length: 65579 byte(s)
Diff to previous 102990 (colored)
using build in err function, thanks Jeff for pointing that.

Revision 102990 - (view) (annotate) - [select for diffs]
Modified Tue Mar 16 16:57:02 2004 UTC (5 years, 8 months ago) by clar
File length: 65617 byte(s)
Diff to previous 102619 (colored)
added check on apr_pollset_create() return value to exit ab it case it fails.
On NetWare using a concurrency higher than 64 is segfaulting because of FD_SETSIZE as a value of 64.

Revision 102619 - (view) (annotate) - [select for diffs]
Modified Mon Feb 9 20:40:53 2004 UTC (5 years, 9 months ago) by nd
File length: 65486 byte(s)
Diff to previous 102592 (colored)
fix name of The Apache Software Foundation

Revision 102592 - (view) (annotate) - [select for diffs]
Modified Sun Feb 8 14:14:53 2004 UTC (5 years, 9 months ago) by nd
File length: 65482 byte(s)
Diff to previous 102525 (colored)
fix copyright dates according the first cehck in

Revision 102525 - (view) (annotate) - [select for diffs]
Modified Fri Feb 6 22:58:42 2004 UTC (5 years, 9 months ago) by nd
File length: 65482 byte(s)
Diff to previous 102155 (colored)
apply Apache License, Version 2.0

Revision 102155 - (view) (annotate) - [select for diffs]
Modified Sat Jan 3 15:58:19 2004 UTC (5 years, 10 months ago) by jorton
File length: 67701 byte(s)
Diff to previous 102135 (colored)
* support/ab.c (write_request): Fix gcc warning at -O2 in USE_SSL
build.

Revision 102135 - (view) (annotate) - [select for diffs]
Modified Thu Jan 1 13:26:26 2004 UTC (5 years, 10 months ago) by nd
File length: 67661 byte(s)
Diff to previous 102014 (colored)
update license to 2004.

Revision 102014 - (view) (annotate) - [select for diffs]
Modified Wed Dec 10 16:08:44 2003 UTC (5 years, 11 months ago) by jorton
File length: 67661 byte(s)
Diff to previous 101154 (colored)
Fix ab's SSL support a little:

* support/ab.c (ssl_*): Fix function prototypes througout.
(test): Use correct connection structure when using SSL.

Revision 101154 - (view) (annotate) - [select for diffs]
Modified Wed Sep 3 19:27:12 2003 UTC (6 years, 2 months ago) by trawick
File length: 67523 byte(s)
Diff to previous 100889 (colored)
switch to APR 1.0 API (which is still in flux)

because of the changes to the argument lists of apr_mmap_dup and apr_socket_create,
2.1-dev won't build with apr and apr-util's 0.9 branch anymore

Revision 100889 - (view) (annotate) - [select for diffs]
Modified Fri Aug 1 10:41:46 2003 UTC (6 years, 3 months ago) by trawick
File length: 67450 byte(s)
Diff to previous 100888 (colored)
distinguish between these two states:

. just issued connect(), polling for writability to find out when connect()
  completed
. already connected, waiting for data from the server so polling for
  readability

by only polling for writability during the first state, we avoid some
logic in test() which inappropriately writes multiple requests to the
server

btw, the most basic SSL test segfaulted before and after this commit

Revision 100888 - (view) (annotate) - [select for diffs]
Modified Fri Aug 1 08:57:43 2003 UTC (6 years, 3 months ago) by trawick
File length: 66153 byte(s)
Diff to previous 100846 (colored)
restore a check for write failures which was lost for non-SSL builds

Revision 100846 - (view) (annotate) - [select for diffs]
Modified Tue Jul 29 18:25:15 2003 UTC (6 years, 4 months ago) by trawick
File length: 66153 byte(s)
Diff to previous 100718 (colored)
ab: Work over non-loopback on Unix again.

(Broken as of 2.0.47 due to dependence on an APR bug which was fixed
in 2.0.47.)

PR:   21495

Revision 100718 - (view) (annotate) - [select for diffs]
Modified Mon Jul 21 11:41:01 2003 UTC (6 years, 4 months ago) by nd
File length: 66139 byte(s)
Diff to previous 100539 (colored)
reject overlong credentials from the commandline

Acked by: Cliff Woolley

Revision 100539 - (view) (annotate) - [select for diffs]
Modified Thu Jul 10 19:16:35 2003 UTC (6 years, 4 months ago) by jorton
File length: 65854 byte(s)
Diff to previous 100447 (colored)
Pick up getpid() prototype.

Revision 100447 - (view) (annotate) - [select for diffs]
Modified Thu Jul 3 16:07:21 2003 UTC (6 years, 4 months ago) by nd
File length: 65786 byte(s)
Diff to previous 100399 (colored)
catch out of memory condition (ID 29 of reasoning report)

Revision 100399 - (view) (annotate) - [select for diffs]
Modified Sun Jun 29 17:41:56 2003 UTC (6 years, 5 months ago) by nd
File length: 65665 byte(s)
Diff to previous 100351 (colored)
Fix NULL-pointer issue in ab when parsing an incomplete or non-HTTP
response.

PR: 21085
Submitted by:	Glenn Nielsen <glenn@apache.org>

Revision 100351 - (view) (annotate) - [select for diffs]
Modified Tue Jun 24 23:09:59 2003 UTC (6 years, 5 months ago) by wrowe
File length: 65492 byte(s)
Diff to previous 98573 (colored)
  Absorb our ssl library-foo from the mod_ssl build changes to automatically
  generate an SSL/https: enabled ab binary.

Revision 98573 - (view) (annotate) - [select for diffs]
Modified Mon Feb 3 17:53:28 2003 UTC (6 years, 9 months ago) by nd
File length: 65382 byte(s)
Diff to previous 97237 (colored)
finished that boring job:
update license to 2003.

Happy New Year! ;-))

Revision 97237 - (view) (annotate) - [select for diffs]
Modified Wed Oct 16 12:39:21 2002 UTC (7 years, 1 month ago) by trawick
File length: 65382 byte(s)
Diff to previous 96611 (colored)
%qd is not portable; use APR_INT64_FMT_T for apr_time_t

Revision 96611 - (view) (annotate) - [select for diffs]
Modified Sun Sep 1 21:11:17 2002 UTC (7 years, 2 months ago) by brianp
File length: 65365 byte(s)
Diff to previous 96607 (colored)
Eliminated some fixed-size buffers that didn't have proper overflow checks

Revision 96607 - (view) (annotate) - [select for diffs]
Modified Sun Sep 1 06:25:42 2002 UTC (7 years, 2 months ago) by aaron
File length: 65426 byte(s)
Diff to previous 96603 (colored)
Keep track of the recent changes for the new pollset API, since they
may affect performance characteristics.

Revision 96603 - (view) (annotate) - [select for diffs]
Modified Sun Sep 1 04:26:32 2002 UTC (7 years, 2 months ago) by brianp
File length: 65200 byte(s)
Diff to previous 96586 (colored)
Switched ab to the new abstract pollset API  (this will
allow ab to take advantage of future apr_pollset_t scalability
improvements)

Revision 96586 - (view) (annotate) - [select for diffs]
Modified Fri Aug 30 12:26:14 2002 UTC (7 years, 2 months ago) by martin
File length: 63954 byte(s)
Diff to previous 96301 (colored)
Leon Brocard writes:
> Hello,
>
> I love httpd2 and I really like apachebench but using the gnuplot
> output option (-g) gave me this:
>
>   starttime       seconds ctime   dtime   ttime   wait
>   Thu Aug 29 12:29:31 200        1030620571362758        0       54      54      0
>
> It's truncating the year. Now according to
> http://apr.apache.org/docs/apr/group__APR__Time.html#a15 "Unlike
> ANSI/ISO C ctime(), apr_ctime() does not include a \n", so the code
> and comment in ab.c are wrong, hence my attached patch to remove them.

Submitted by:	Leon Brocard <acme@astray.com>

Revision 96301 - (view) (annotate) - [select for diffs]
Modified Sat Aug 3 22:01:40 2002 UTC (7 years, 3 months ago) by wrowe
File length: 64068 byte(s)
Diff to previous 96300 (colored)
  Revert to CRYPTO_malloc_init for non-rsa [gotta read the diffs more
  closely the first time.]

Revision 96300 - (view) (annotate) - [select for diffs]
Modified Sat Aug 3 22:00:23 2002 UTC (7 years, 3 months ago) by wrowe
File length: 64065 byte(s)
Diff to previous 96234 (colored)
  Support rsaref compilation

Revision 96234 - (view) (annotate) - [select for diffs]
Modified Tue Jul 30 13:00:33 2002 UTC (7 years, 4 months ago) by trawick
File length: 63812 byte(s)
Diff to previous 96074 (colored)
fix a spelling problem

Revision 96074 - (view) (annotate) - [select for diffs]
Modified Tue Jul 16 09:30:16 2002 UTC (7 years, 4 months ago) by martin
File length: 63811 byte(s)
Diff to previous 96073 (colored)
And fix the version number

Revision 96073 - (view) (annotate) - [select for diffs]
Modified Tue Jul 16 09:28:40 2002 UTC (7 years, 4 months ago) by martin
File length: 63811 byte(s)
Diff to previous 96057 (colored)
Fix the long-standing bug that "ab -t10" would loop for 10000 seconds
instead of 10 as documented. Also fix an off-by-one-second error, which
did not matter much (in comparison to the 1000x error ;-)

Revision 96057 - (view) (annotate) - [select for diffs]
Modified Mon Jul 15 08:05:11 2002 UTC (7 years, 4 months ago) by wrowe
File length: 63770 byte(s)
Diff to previous 96011 (colored)
  http occurances to update for apr_socket_opt_get/set

Revision 96011 - (view) (annotate) - [select for diffs]
Modified Thu Jul 11 13:44:12 2002 UTC (7 years, 4 months ago) by dirkx
File length: 63778 byte(s)
Diff to previous 96005 (colored)
We where mixing #if USE_SSL en #ifdef USE_SSL. Since there where
many more #ifdef's than #if's - Converted the minority to the majority.

Note however that the APR_* defines are usually set to '=1'. So this is
not quite consistent. (I.e. CFLAGS=-DUSE_SSL or CFLAGS=-DUSE_SSL=1).

Dw.

Revision 96005 - (view) (annotate) - [select for diffs]
Modified Thu Jul 11 05:42:20 2002 UTC (7 years, 4 months ago) by rbb
File length: 63769 byte(s)
Diff to previous 95980 (colored)
Bring Apache in line with APR's new poll implementation.  This isn't
optimal, because it still uses the compatibility functions to make it
work, but it does work.  The next step will be to take the memory for
the pollsets under Apache's control.

Revision 95980 - (view) (annotate) - [select for diffs]
Modified Mon Jul 8 19:39:01 2002 UTC (7 years, 4 months ago) by wrowe
File length: 63734 byte(s)
Diff to previous 95967 (colored)
  If you want floating math, use float literals.

Revision 95967 - (view) (annotate) - [select for diffs]
Modified Sun Jul 7 06:37:21 2002 UTC (7 years, 4 months ago) by brianp
File length: 63733 byte(s)
Diff to previous 95960 (colored)
fix for compilers that don't support long long datatype

Revision 95960 - (view) (annotate) - [select for diffs]
Modified Thu Jul 4 22:56:51 2002 UTC (7 years, 4 months ago) by brianp
File length: 63749 byte(s)
Diff to previous 95457 (colored)
use the time conversion macros rather than dividing by APR_USEC_PER_SEC

Revision 95457 - (view) (annotate) - [select for diffs]
Modified Fri May 31 21:33:24 2002 UTC (7 years, 5 months ago) by wrowe
File length: 63697 byte(s)
Diff to previous 95451 (colored)
  A few more unused/unnecessary variables and surpress an uninitialized
  value warning.

Revision 95451 - (view) (annotate) - [select for diffs]
Modified Fri May 31 19:26:20 2002 UTC (7 years, 5 months ago) by wrowe
File length: 63764 byte(s)
Diff to previous 95447 (colored)
  Enable SSL negotation in ab.c.  It is that, or remove all the entirely
  BOGUS ssl config options from ab.c.  If it works, nifty, if not, we now
  have directives that have some effect, rather than no effect, for SSL.

Submitted by:	Madhu Mathihalli <madhusudan_mathihalli@hp.com>

Revision 95447 - (view) (annotate) - [select for diffs]
Modified Fri May 31 17:22:58 2002 UTC (7 years, 5 months ago) by wrowe
File length: 55505 byte(s)
Diff to previous 95442 (colored)
  Well, know that I'm aware that the ssl stuff was entirely premature, it's
  still worth committing the correct code to handle the port number.

Revision 95442 - (view) (annotate) - [select for diffs]
Modified Fri May 31 16:31:29 2002 UTC (7 years, 5 months ago) by wrowe
File length: 55392 byte(s)
Diff to previous 95168 (colored)
  Locks are good, provide locks.  ab -s -c >1 is [was?] dying on Win32
  while -s -c 1 works just fine.  Still investigating.

Revision 95168 - (view) (annotate) - [select for diffs]
Modified Sat May 18 06:27:06 2002 UTC (7 years, 6 months ago) by jwoolley
File length: 53572 byte(s)
Diff to previous 94898 (colored)
There's really no reason for a -dev here.

Revision 94898 - (view) (annotate) - [select for diffs]
Modified Wed May 1 21:17:18 2002 UTC (7 years, 6 months ago) by rederpj
File length: 53578 byte(s)
Diff to previous 94872 (colored)

Fix some minor formatting issues with ab. Part of this is
     in reference to PR 8544, the rest I noticed while testing
     the PR fix. [Paul J. Reder]

Submitted By: Carlo Marcelo Arenas Belon
Reviewed By:  Paul J. Reder

Revision 94872 - (view) (annotate) - [select for diffs]
Modified Tue Apr 30 01:29:11 2002 UTC (7 years, 7 months ago) by fielding
File length: 53557 byte(s)
Diff to previous 94792 (colored)
Remove APR_WANT_SIGNAL from apr_want.h because code must include
apr_signal.h in order to get consistent definitions.

Revision 94792 - (view) (annotate) - [select for diffs]
Modified Thu Apr 25 08:31:13 2002 UTC (7 years, 7 months ago) by dirkx
File length: 53659 byte(s)
Diff to previous 94787 (colored)
During the 1.3->2.0 migragrion; ab its #defined VERSION own string was replaced
by that of the base server distribution it sits in. Propably by accident.

This is propably not a good idea - as ideally one would like to be able to compare
ab runs as much as possible - even across releases of apache 2.0 - assuming ab or
the dependent APR has not changed (note to self: we do not track APR in our version
structure). This commit decouples the version strings for now. Though the actual
value may be nicely confusing.

Revision 94787 - (view) (annotate) - [select for diffs]
Modified Wed Apr 24 23:28:38 2002 UTC (7 years, 7 months ago) by aaron
File length: 52908 byte(s)
Diff to previous 94782 (colored)
Document the recent AB changes since they have the potential to change
the meaning of test results.

Revision 94782 - (view) (annotate) - [select for diffs]
Modified Wed Apr 24 17:09:59 2002 UTC (7 years, 7 months ago) by aaron
File length: 52488 byte(s)
Diff to previous 94643 (colored)
Major improvement in concurrent processing for AB:
- Enable non-blocking connects.
- Prevent quasi-blocking mode apr_recv (which would prevent AB from
  multiplexing over the entire descriptor set).
- Catch other fatal apr_recv() errors.

[This patch is slightly different than the one posted to the dev list,
but regardless thanks to the many people who reviewed this.]

Revision 94643 - (view) (annotate) - [select for diffs]
Modified Sun Apr 14 09:21:43 2002 UTC (7 years, 7 months ago) by brianp
File length: 52107 byte(s)
Diff to previous 94633 (colored)
fixed a typo

Revision 94633 - (view) (annotate) - [select for diffs]
Modified Sat Apr 13 19:35:18 2002 UTC (7 years, 7 months ago) by wrowe
File length: 52107 byte(s)
Diff to previous 94355 (colored)
  Correct const'ness of argv in all support apps, and use the new
  apr_app_initialize over apr_initialize for win32, and other platforms
  that may wish to tweak 'apr-ized' application support (e.g. Netware?)

Revision 94355 - (view) (annotate) - [select for diffs]
Modified Mon Apr 1 04:32:40 2002 UTC (7 years, 7 months ago) by dirkx
File length: 52084 byte(s)
Diff to previous 94315 (colored)
Made AB's use of the Host: header rfc2616 compliant as
reported by Taisuke Yamada <tai@iij.ad.jp>

PR:
Obtained from: Mailing list
Submitted by: Taisuke Yamada <tai@iij.ad.jp>
Reviewed by: Dirk-Willem van Gulik

Revision 94315 - (view) (annotate) - [select for diffs]
Modified Fri Mar 29 19:20:40 2002 UTC (7 years, 8 months ago) by dirkx
File length: 51780 byte(s)
Diff to previous 94013 (colored)
Removed email address on request - as obviscation was slammed down on the list - and Google is your friend in any case

Revision 94013 - (view) (annotate) - [select for diffs]
Modified Tue Mar 19 02:52:20 2002 UTC (7 years, 8 months ago) by jwoolley
File length: 51805 byte(s)
Diff to previous 93994 (colored)
What is "zop"?  :)

Revision 93994 - (view) (annotate) - [select for diffs]
Modified Mon Mar 18 06:33:53 2002 UTC (7 years, 8 months ago) by jwoolley
File length: 51804 byte(s)
Diff to previous 93918 (colored)
Carriage returns??

Revision 93918 - (view) (annotate) - [select for diffs]
Modified Wed Mar 13 20:48:07 2002 UTC (7 years, 8 months ago) by fielding
File length: 51879 byte(s)
Diff to previous 93884 (colored)
Update our copyright for this year.

Revision 93884 - (view) (annotate) - [select for diffs]
Modified Tue Mar 12 23:15:54 2002 UTC (7 years, 8 months ago) by trawick
File length: 51879 byte(s)
Diff to previous 93043 (colored)
simplify the way we find the family of an apr_sockaddr_t

Revision 93043 - (view) (annotate) - [select for diffs]
Modified Sun Jan 27 06:38:25 2002 UTC (7 years, 10 months ago) by brianp
File length: 51890 byte(s)
Diff to previous 92247 (colored)
Fixed segfault in "-i" mode of ab

Revision 92247 - (view) (annotate) - [select for diffs]
Modified Thu Nov 29 11:30:57 2001 UTC (8 years ago) by trawick
File length: 51881 byte(s)
Diff to previous 92242 (colored)
"totalcon / requests" is no longer double either, so %5e doesn't fly

Revision 92242 - (view) (annotate) - [select for diffs]
Modified Thu Nov 29 07:17:09 2001 UTC (8 years ago) by wrowe
File length: 51865 byte(s)
Diff to previous 91861 (colored)
  I don't believe it.  This actually fixes the rest of the type mismatches.

  Of course, I could have hosed everything, a second pair of eyes would be
  appreciated.

Revision 91861 - (view) (annotate) - [select for diffs]
Modified Mon Nov 12 01:21:21 2001 UTC (8 years ago) by trawick
File length: 51752 byte(s)
Diff to previous 91521 (colored)
clean up some warnings on AIX

since apr_size_t isn't always int, we should use
APR_SIZE_T_FMT instead of %d

Revision 91521 - (view) (annotate) - [select for diffs]
Modified Wed Oct 17 13:42:22 2001 UTC (8 years, 1 month ago) by wrowe
File length: 51718 byte(s)
Diff to previous 90501 (colored)
  Some type correctness fixes for LARGEFILES platforms.

Revision 90501 - (view) (annotate) - [select for diffs]
Modified Wed Aug 22 18:58:36 2001 UTC (8 years, 3 months ago) by trawick
File length: 51710 byte(s)
Diff to previous 90209 (colored)
simplify some code in output_results() just a bit to avoid a
bug in gcc 2.7.2.3 on FreeBSD 3.4; didn't hit the problem with
-O2; did hit the problem with no -O

Revision 90209 - (view) (annotate) - [select for diffs]
Modified Thu Aug 16 08:20:36 2001 UTC (8 years, 3 months ago) by wrowe
File length: 51669 byte(s)
Diff to previous 89639 (colored)
  Now that it's apr'ized, ab is most definately in a 2.0 revision cycle,
  and definately needs to track the Apache revision (especially because of
  apr and apr-util!)

Revision 89639 - (view) (annotate) - [select for diffs]
Modified Fri Jul 20 09:51:43 2001 UTC (8 years, 4 months ago) by dreid
File length: 51624 byte(s)
Diff to previous 89619 (colored)
If we've spent the effort of getting some connections, when we die with an
error at least inform the user how many we completed before dying.
Tidy up some formatting...

Revision 89619 - (view) (annotate) - [select for diffs]
Modified Thu Jul 19 16:40:42 2001 UTC (8 years, 4 months ago) by wrowe
File length: 51462 byte(s)
Diff to previous 89615 (colored)
  A smart answer to users attempting the -s arg to ab.

Revision 89615 - (view) (annotate) - [select for diffs]
Modified Thu Jul 19 12:43:22 2001 UTC (8 years, 4 months ago) by trawick
File length: 51377 byte(s)
Diff to previous 89614 (colored)
fix the type of parms to apr_send() and apr_recv()

Revision 89614 - (view) (annotate) - [select for diffs]
Modified Thu Jul 19 04:39:17 2001 UTC (8 years, 4 months ago) by wrowe
File length: 51363 byte(s)
Diff to previous 89596 (colored)
  Truncate the working set in ab by introducing a connection pool.

Revision 89596 - (view) (annotate) - [select for diffs]
Modified Wed Jul 18 18:08:57 2001 UTC (8 years, 4 months ago) by wrowe
File length: 51217 byte(s)
Diff to previous 89595 (colored)
  Hmmm... editing with tabs != 8, eeuh.  Just cleaning and fixing casts.

Revision 89595 - (view) (annotate) - [select for diffs]
Modified Wed Jul 18 17:56:14 2001 UTC (8 years, 4 months ago) by wrowe
File length: 51079 byte(s)
Diff to previous 89592 (colored)
  Fix some casting

Revision 89592 - (view) (annotate) - [select for diffs]
Modified Wed Jul 18 16:56:55 2001 UTC (8 years, 4 months ago) by wrowe
File length: 51061 byte(s)
Diff to previous 89557 (colored)
  Changes to back out inherit flag from apr_os_sock_make()
  and apr_socket_create()

Revision 89557 - (view) (annotate) - [select for diffs]
Modified Mon Jul 16 16:11:05 2001 UTC (8 years, 4 months ago) by rbb
File length: 51077 byte(s)
Diff to previous 89414 (colored)
Added an inherit flag to apr_socket_create and other socket creation
functions.  This allows APR programs to specify that a socket should
be passed to any child processes that are created.  The inherit flag
is only meaningful if programs use apr_process_create().  This
also adds a couple of macros that allow APR types to set and unset
the inherit flag.

This also fixes Apache to use the new API.

Revision 89414 - (view) (annotate) - [select for diffs]
Modified Tue Jun 26 04:07:43 2001 UTC (8 years, 5 months ago) by jwoolley
File length: 51061 byte(s)
Diff to previous 89383 (colored)
Fix spelling mistake.

Revision 89383 - (view) (annotate) - [select for diffs]
Modified Mon Jun 18 11:50:42 2001 UTC (8 years, 5 months ago) by trawick
File length: 51060 byte(s)
Diff to previous 88819 (colored)
The patch fixes 2 things.
* apr_terminate now has the right declaration so it can be used
directly in atexit
* Win2K gets a divde by zero error when heartbeatres is zero (reproduce via
    support\Debug\ab.exe -k -c 6 -n 100 localhost/

Submitted by:   Ian Holsman <ianh@cnet.com>
Reviewed by:    Jeff Trawick

Revision 88819 - (view) (annotate) - [select for diffs]
Modified Thu Apr 12 07:34:17 2001 UTC (8 years, 7 months ago) by fielding
File length: 51098 byte(s)
Diff to previous 88691 (colored)
Make ab work again by changing its native types to apr types and formats.

Submitted by:	Justin Erenkrantz <jerenkrantz@ebuilt.com>
Reviewed by:	Roy Fielding

Revision 88691 - (view) (annotate) - [select for diffs]
Modified Tue Apr 3 16:49:25 2001 UTC (8 years, 7 months ago) by trawick
File length: 50146 byte(s)
Diff to previous 88680 (colored)
Uhh, we really need the prototypes for standard string functions.

Revision 88680 - (view) (annotate) - [select for diffs]
Modified Tue Apr 3 01:56:18 2001 UTC (8 years, 7 months ago) by dirkx
File length: 50099 byte(s)
Diff to previous 88677 (colored)
Make live simpler - as we are using strchr already

Revision 88677 - (view) (annotate) - [select for diffs]
Modified Tue Apr 3 01:41:51 2001 UTC (8 years, 7 months ago) by dirkx
File length: 50145 byte(s)
Diff to previous 88675 (colored)
Doing last minute alphabettically sorting things to look nice is not always a good idea.

Revision 88675 - (view) (annotate) - [select for diffs]
Modified Tue Apr 3 01:39:13 2001 UTC (8 years, 7 months ago) by trawick
File length: 50145 byte(s)
Diff to previous 88660 (colored)
make sure we have the prototype for index() (fixes a Solaris warning)

Revision 88660 - (view) (annotate) - [select for diffs]
Modified Mon Apr 2 21:59:03 2001 UTC (8 years, 7 months ago) by trawick
File length: 50147 byte(s)
Diff to previous 88653 (colored)
consistent types; avoid warning on AIX for mismatch between printf
format and arg

Revision 88653 - (view) (annotate) - [select for diffs]
Modified Mon Apr 2 18:49:44 2001 UTC (8 years, 7 months ago) by trawick
File length: 50149 byte(s)
Diff to previous 88651 (colored)
"void *res = signal(blah)" isn't cool 'cause void * is not compatible with
a function pointer; but we don't need to save the old signal pointer anyway
so drop the variable

Revision 88651 - (view) (annotate) - [select for diffs]
Modified Mon Apr 2 17:58:23 2001 UTC (8 years, 7 months ago) by trawick
File length: 50184 byte(s)
Diff to previous 88650 (colored)
keep ab from dividing by zero when heartbeatres is zero

Revision 88650 - (view) (annotate) - [select for diffs]
Modified Mon Apr 2 17:50:45 2001 UTC (8 years, 7 months ago) by rbb
File length: 50170 byte(s)
Diff to previous 88628 (colored)
Cleanup all the warnings introduced in AB yesterday.

Revision 88628 - (view) (annotate) - [select for diffs]
Modified Mon Apr 2 06:19:45 2001 UTC (8 years, 7 months ago) by dirkx
File length: 50620 byte(s)
Diff to previous 88627 (colored)
Commit early and often. This should merge all changes into
ab from 1.3 into 2.0. SSL work not completed; I need to move
some of the autoconf detection of mod_wtls to a more central
place first. Any suggestions appreciated :-)

PR:
Obtained from:
Submitted by:
Reviewed by:

Revision 88627 - (view) (annotate) - [select for diffs]
Modified Mon Apr 2 04:39:01 2001 UTC (8 years, 7 months ago) by dirkx
File length: 37724 byte(s)
Diff to previous 88626 (colored)
Either MacOS-X is much more sensitive for border conditions - or I am just being
unlucky. This allows for apr_send() to do consequitive partial write's; by keeping
a buffer and TO within ab itself. Ab was already doing that for read anyway.

PR:
Obtained from:
Submitted by:
Reviewed by:

Revision 88626 - (view) (annotate) - [select for diffs]
Modified Mon Apr 2 03:25:32 2001 UTC (8 years, 7 months ago) by dirkx
File length: 37944 byte(s)
Diff to previous 88625 (colored)
First stab at encapsulating the apr_send() to make it a
little more pushy. Ran into this whilst' porting the -1.3
changes forward.

PR:
Obtained from:
Submitted by:
Reviewed by:

Revision 88625 - (view) (annotate) - [select for diffs]
Modified Mon Apr 2 01:50:40 2001 UTC (8 years, 7 months ago) by dirkx
File length: 36838 byte(s)
Diff to previous 88281 (colored)
Prevent cobbering of lenght for subsequent sends. Still not quite
right; we ough to call apr_send again if len != requested_len - but
then our timeout could be len * timeout if we happen to only stuff
one byte down the pipe each time.

PR:
Obtained from:
Submitted by:
Reviewed by:

Revision 88281 - (view) (annotate) - [select for diffs]
Modified Thu Feb 22 23:52:51 2001 UTC (8 years, 9 months ago) by rbb
File length: 40934 byte(s)
Diff to previous 88184 (colored)
Use "Basic" authentication instead of "basic" in ab, as the spec says we
should.
PR:	7294
Submitted by:	Andre Breiler <andre.breiler@rd.bbc.co.uk>

Revision 88184 - (view) (annotate) - [select for diffs]
Modified Fri Feb 16 04:26:53 2001 UTC (8 years, 9 months ago) by fielding
File length: 40934 byte(s)
Diff to previous 88019 (colored)
Update copyright to 2001

Revision 88019 - (view) (annotate) - [select for diffs]
Modified Thu Feb 8 07:45:33 2001 UTC (8 years, 9 months ago) by dougm
File length: 40929 byte(s)
Diff to previous 87827 (colored)
renaming various functions for consistency sake
see: http://apr.apache.org/~dougm/apr_rename.pl
PR:
Obtained from:
Submitted by:
Reviewed by:

Revision 87827 - (view) (annotate) - [select for diffs]
Modified Thu Jan 25 14:43:28 2001 UTC (8 years, 10 months ago) by trawick
File length: 40844 byte(s)
Diff to previous 87760 (colored)
close the post file after reading it

Revision 87760 - (view) (annotate) - [select for diffs]
Modified Sat Jan 20 21:42:23 2001 UTC (8 years, 10 months ago) by wrowe
File length: 40821 byte(s)
Diff to previous 87731 (colored)
  The changes required for the APR_FINFO_wanted argument to
  apr_stat/lstat/getfileinfo.  These are -NOT- optimal, they
  are simply the required changes to get the server working.
  The size of the patch is a warning about how we need to
  really look at what we are trying to accomplish with all
  of these stat/lstat calls.

Revision 87731 - (view) (annotate) - [select for diffs]
Modified Fri Jan 19 07:04:36 2001 UTC (8 years, 10 months ago) by wrowe
File length: 40805 byte(s)
Diff to previous 87726 (colored)
  The big change.  This is part 3 of the apr-util symbols rename, please
  see the first commit of srclib/apr-util/include (cvs apr-util/include)
  for the quick glance at symbols changed.

Revision 87726 - (view) (annotate) - [select for diffs]
Modified Thu Jan 18 23:54:14 2001 UTC (8 years, 10 months ago) by wrowe
File length: 40800 byte(s)
Diff to previous 87692 (colored)
  When is a void fn(void) not a void fn(void)?  It's a win32'ism, since
  the APR_DECLARE (excluding _NONSTD) uses the pascal convention.  Really
  irrelevant in a function that never needs to clean up (atexit), but
  the compiler complains.  Possible workarounds, but that would break
  non-c lanaguge code from linking into apr.

Revision 87692 - (view) (annotate) - [select for diffs]
Modified Mon Jan 15 20:22:30 2001 UTC (8 years, 10 months ago) by trawick
File length: 40750 byte(s)
Diff to previous 87689 (colored)
fix a warning on platforms where apr_size_t isn't int

Revision 87689 - (view) (annotate) - [select for diffs]
Modified Mon Jan 15 18:01:48 2001 UTC (8 years, 10 months ago) by trawick
File length: 40717 byte(s)
Diff to previous 87671 (colored)
Fix an endless loop in ab which occurred when ab was posting
and the server dropped the connection unexpectedly.

Revision 87671 - (view) (annotate) - [select for diffs]
Modified Fri Jan 12 14:28:17 2001 UTC (8 years, 10 months ago) by trawick
File length: 40253 byte(s)
Diff to previous 87628 (colored)
open_postfile():
  fix some return codes along the lines of OtherBill's comment
  fix some bad conditional logic for when to check if we read the
    wrong number of bytes

Revision 87628 - (view) (annotate) - [select for diffs]
Modified Tue Jan 9 04:48:18 2001 UTC (8 years, 10 months ago) by trawick
File length: 39946 byte(s)
Diff to previous 87506 (colored)
get rid of a non-portable use of errno

don't return errno as an error flag after an APR function fails; return
something guaranteed to be non-zero on all platforms

Revision 87506 - (view) (annotate) - [select for diffs]
Modified Fri Dec 22 00:02:52 2000 UTC (8 years, 11 months ago) by rbb
File length: 39945 byte(s)
Diff to previous 87501 (colored)
Cleanups so that the support programs build cleanly.  The Win32 values
need to be sanity checked.
Submitted by:	Cliff Woolley <cliffwoolley@yahoo.com>
Reviewed by:	Ryan Bloom

Revision 87501 - (view) (annotate) - [select for diffs]
Modified Thu Dec 21 21:00:45 2000 UTC (8 years, 11 months ago) by wrowe
File length: 39896 byte(s)
Diff to previous 87498 (colored)
  All the supports now build on APR (+APRUTIL), no reliance on httpd.

Revision 87498 - (view) (annotate) - [select for diffs]
Modified Thu Dec 21 20:29:26 2000 UTC (8 years, 11 months ago) by wrowe
File length: 39892 byte(s)
Diff to previous 87252 (colored)
  This program should run entirely without ap_config support from
  Apache, given that it is apr'ized

Revision 87252 - (view) (annotate) - [select for diffs]
Modified Thu Dec 7 18:12:48 2000 UTC (8 years, 11 months ago) by trawick
File length: 39915 byte(s)
Diff to previous 87223 (colored)
ab: use apr_parse_addr_port() in parse_url().
httpd.exp: Add the new APR symbol apr_parse_addr_port.

Revision 87223 - (view) (annotate) - [select for diffs]
Modified Tue Dec 5 21:02:20 2000 UTC (8 years, 11 months ago) by wrowe
File length: 40556 byte(s)
Diff to previous 87201 (colored)
  Fix some leftover dirtyness from the conversion.  All is building
  over in Win32 land.

Revision 87201 - (view) (annotate) - [select for diffs]
Modified Tue Dec 5 05:32:59 2000 UTC (8 years, 11 months ago) by rbb
File length: 40561 byte(s)
Diff to previous 87150 (colored)
Make ApacheBench compile cleanly again

Revision 87150 - (view) (annotate) - [select for diffs]
Modified Fri Dec 1 21:51:51 2000 UTC (8 years, 11 months ago) by trawick
File length: 40512 byte(s)
Diff to previous 87130 (colored)
use APR_SIZE_T_FMT to avoid a warning on AIX

Revision 87130 - (view) (annotate) - [select for diffs]
Modified Wed Nov 29 17:33:03 2000 UTC (8 years, 11 months ago) by gstein
File length: 40495 byte(s)
Diff to previous 87127 (colored)
Use "const char * const *" for process->argv (which is the correct
const-ness since we sometimes put "some string" in there, and also the CRT's
argv). propagate this change within http_main and mpm/winnt/ (also correct
some other const type usage within the MPM).

fix ab's call to parse_url() which removed a const to actually manipulate an
arg from the CRT's argv (indirectly via opt->arg). no idea how this has
avoided segfaulting.

Revision 87127 - (view) (annotate) - [select for diffs]
Modified Wed Nov 29 13:02:11 2000 UTC (9 years ago) by trawick
File length: 40482 byte(s)
Diff to previous 87080 (colored)
Get ab to compile cleanly after the apr_initopt() change.

Revision 87080 - (view) (annotate) - [select for diffs]
Modified Sun Nov 26 04:47:43 2000 UTC (9 years ago) by gstein
File length: 40468 byte(s)
Diff to previous 87056 (colored)
*) Compensate for recent changes in the APR headers. Specifically, some
   files need to specifically include stdio.h, or a particular apr_*.h
   header.

*) Adjust callers of apr_create_process() to deal with the extra "const"

*) Add "const" to args of ap_os_create_privileged_process()

Revision 87056 - (view) (annotate) - [select for diffs]
Modified Tue Nov 21 21:48:48 2000 UTC (9 years ago) by trawick
File length: 40350 byte(s)
Diff to previous 87054 (colored)
Don't use APR_INET6 unless APR_HAVE_INET6 is defined.

Revision 87054 - (view) (annotate) - [select for diffs]
Modified Tue Nov 21 19:47:14 2000 UTC (9 years ago) by trawick
File length: 40251 byte(s)
Diff to previous 87025 (colored)
Update ab to accept URLs with IPv6 literal address strings (in the
format described in RFC 2732), and to build Host header fields in
the same format.  This allows IPv6 literal address strings to be
used with ab.  This support has been tested against Apache 1.3 with
the KAME patch, but Apache 2.0 does not yet work with this format
of the Host header field.

Revision 87025 - (view) (annotate) - [select for diffs]
Modified Sun Nov 19 14:27:45 2000 UTC (9 years ago) by trawick
File length: 39318 byte(s)
Diff to previous 86990 (colored)
Call apr_create_socket() instead of apr_create_tcp_socket() (deprecated).

Revision 86990 - (view) (annotate) - [select for diffs]
Modified Fri Nov 17 03:45:02 2000 UTC (9 years ago) by trawick
File length: 39138 byte(s)
Diff to previous 86915 (colored)
APR: Change apr_connect() to take apr_sockaddr_t instead of hostname.
Add generic apr_create_socket().  Add apr_getaddrinfo() for doing
hostname resolution/address string parsing and building
apr_sockaddr_t.
Submitted by:	David Reid
Reviewed by:	Jeff Trawick

Revision 86915 - (view) (annotate) - [select for diffs]
Modified Fri Nov 10 19:01:33 2000 UTC (9 years ago) by rbb
File length: 39074 byte(s)
Diff to previous 86872 (colored)
Fix a lot of the fallback from the apr_ssize_t to apr_size_t change
Submitted by:	Victor J. Orlikowski <v.j.orlikowski@gte.net>

Revision 86872 - (view) (annotate) - [select for diffs]
Modified Wed Nov 8 18:41:45 2000 UTC (9 years ago) by trawick
File length: 39079 byte(s)
Diff to previous 86793 (colored)
Get ab to build again by changing apr_set_remote_port() to apr_set_port().

Revision 86793 - (view) (annotate) - [select for diffs]
Modified Thu Nov 2 02:12:34 2000 UTC (9 years ago) by trawick
File length: 39074 byte(s)
Diff to previous 86595 (colored)
Get rid of some warnings on Solaris 8 by using APR's ctype macros:
logresolve.c: In function `main':
logresolve.c:327: warning: subscript has type `char'
ab.c: In function `main':
ab.c:1074: warning: subscript has type `char'
ab.c:1087: warning: subscript has type `char'

Revision 86595 - (view) (annotate) - [select for diffs]
Modified Sun Oct 15 11:46:22 2000 UTC (9 years, 1 month ago) by dreid
File length: 39066 byte(s)
Diff to previous 86405 (colored)
Some fixes and a general tidy up of ab.  With these changes ab can now
support concurrency levels > 1 against the loopback on BONE and will
actually use all the connections it starts.

Revision 86405 - (view) (annotate) - [select for diffs]
Modified Thu Oct 5 17:33:14 2000 UTC (9 years, 1 month ago) by wrowe
File length: 38374 byte(s)
Diff to previous 86229 (colored)
  The lots of little ones... APR_IS_STATUS_condition(rv) conditional macros
  replacing the majority of fallible rv == APR_condition tests.  But there
  are lots more to fix, these are the obvious ones that already did proper
  canonical error conversion.

Revision 86229 - (view) (annotate) - [select for diffs]
Modified Thu Sep 14 18:42:58 2000 UTC (9 years, 2 months ago) by trawick
File length: 38402 byte(s)
Diff to previous 86045 (colored)
Fix the types of the variables passed as the len parm to bucket->read()
(in various places).
In ab, change the declaration of argv so that it can be passed into
apr_initopt() without warning.
Submitted by:	Victor J. Orlikowski <v.j.orlikowski@gte.net>
Reviewed and modified slightly by:	Jeff Trawick

Revision 86045 - (view) (annotate) - [select for diffs]
Modified Thu Aug 10 12:52:37 2000 UTC (9 years, 3 months ago) by trawick
File length: 38396 byte(s)
Diff to previous 86037 (colored)
Tweak apr_getopt() and its use in ab to avoid compiler warnings.
(Note: apr_initopt() and/or its callers still need tweaking.)
Submitted by:	Bill Rowe
Reviewed by:	Jeff Trawick

Revision 86037 - (view) (annotate) - [select for diffs]
Modified Wed Aug 9 15:01:59 2000 UTC (9 years, 3 months ago) by wrowe
File length: 38366 byte(s)
Diff to previous 86020 (colored)
  Fix ApacheBench for the apr_initopt/apr_getopt change.  This illustrates
  abusing the apr_getopt_t for direct access at the working structure, just
  as we did with the global vars.  By my global search, there should be no
  more apr_opt*** symbols out there.

PR:
Obtained from:
Submitted by:
Reviewed by:

Revision 86020 - (view) (annotate) - [select for diffs]
Modified Mon Aug 7 20:11:37 2000 UTC (9 years, 3 months ago) by trawick
File length: 38380 byte(s)
Diff to previous 86018 (colored)
A few more (last?) ap_xlate->apr_xlate changes covering stuff not completely
handled in the big apr rename last week.

Revision 86018 - (view) (annotate) - [select for diffs]
Modified Mon Aug 7 19:26:02 2000 UTC (9 years, 3 months ago) by trawick
File length: 38376 byte(s)
Diff to previous 86008 (colored)
Fix some problems with the apr conversion so that APACHE_XLATE builds work
again.

Revision 86008 - (view) (annotate) - [select for diffs]
Modified Sun Aug 6 06:07:53 2000 UTC (9 years, 3 months ago) by wrowe
File length: 38372 byte(s)
Diff to previous 85976 (colored)
  Remaining cleanup of ap_ -> apr_ and AP_ -> APR_ transformation...
  see src/lib/apr/apr_compat.h for most details.
  Also a few minor nits to get Win32 to build.

PR:
Obtained from:
Submitted by:
Reviewed by:

Revision 85976 - (view) (annotate) - [select for diffs]
Modified Wed Aug 2 05:27:38 2000 UTC (9 years, 3 months ago) by dougm
File length: 38346 byte(s)
Diff to previous 85962 (colored)
prefix libapr functions and types with apr_

Revision 85962 - (view) (annotate) - [select for diffs]
Modified Mon Jul 31 14:50:50 2000 UTC (9 years, 3 months ago) by trawick
File length: 38279 byte(s)
Diff to previous 85855 (colored)
Don't use perror() to report the failure of an APR function.
Introduce apr_err() for that purpose.

Revision 85855 - (view) (annotate) - [select for diffs]
Modified Sun Jul 16 00:06:39 2000 UTC (9 years, 4 months ago) by fielding
File length: 37918 byte(s)
Diff to previous 85558 (colored)
ab would start up more connections than needed, then quit when the
desired number were finished. Also fixed a logic error involving
ab keepalives.

Submitted by:	Victor J. Orlikowski
Reviewed by:	Roy Fielding

Revision 85558 - (view) (annotate) - [select for diffs]
Modified Mon Jun 12 23:03:05 2000 UTC (9 years, 5 months ago) by rbb
File length: 37770 byte(s)
Diff to previous 85320 (colored)
Protect system header files with the appropriate macros.

Revision 85320 - (view) (annotate) - [select for diffs]
Modified Sat May 27 23:49:07 2000 UTC (9 years, 6 months ago) by wrowe
File length: 37660 byte(s)
Diff to previous 85261 (colored)
PR:
Obtained from:
Submitted by:
Reviewed by:

  One reason ap_config.h can be a problem.  Change VERSION->AB_VERSION to
  avoid ap_config.h #undef.

Revision 85261 - (view) (annotate) - [select for diffs]
Modified Fri May 19 22:39:40 2000 UTC (9 years, 6 months ago) by rbb
File length: 37645 byte(s)
Diff to previous 85251 (colored)
Remove a warning about ap_base64encode not being defined anywhere.

Revision 85251 - (view) (annotate) - [select for diffs]
Modified Fri May 19 02:18:06 2000 UTC (9 years, 6 months ago) by trawick
File length: 37622 byte(s)
Diff to previous 85226 (colored)
ab: Fix a command-line processing bug; track bad headers in
err_response; support reading headers up to 2K.  (In the
original patch it was 8K instead of 2K; it isn't clear to me
that 8K is really needed or appropriate.)
Submitted by:	Ask Bjoern Hansen <ask@valueclick.com>
Reviewed by:	Jeff Trawick

Revision 85226 - (view) (annotate) - [select for diffs]
Modified Tue May 16 03:11:13 2000 UTC (9 years, 6 months ago) by trawick
File length: 37546 byte(s)
Diff to previous 85223 (colored)
APR-ize the CHARSET_EBCDIC support in ap_base64encode() and
ap_base64decode().  The app (e.g., Apache, ab) must call a function
to set up translation.

Revision 85223 - (view) (annotate) - [select for diffs]
Modified Tue May 16 02:42:57 2000 UTC (9 years, 6 months ago) by trawick
File length: 37384 byte(s)
Diff to previous 85120 (colored)
Fix some bugs (mostly lost 1.3 code) in ab's command-line processing.

Revision 85120 - (view) (annotate) - [select for diffs]
Modified Mon May 1 15:56:26 2000 UTC (9 years, 6 months ago) by trawick
File length: 36975 byte(s)
Diff to previous 85080 (colored)
add missing ';' in non-ASCII path

Revision 85080 - (view) (annotate) - [select for diffs]
Modified Fri Apr 28 18:25:02 2000 UTC (9 years, 7 months ago) by trawick
File length: 36974 byte(s)
Diff to previous 85068 (colored)
Win32:
  install ab.exe
  fix dependency in Apache.dsw (ab is dependent on aprlib and ap)
  fix ab and htdigest projects so that they find all header files
  define ap_signal() in apr.hw - this is o.k. for casual use as with
    cmd-line programs
  use API_VAR_EXPORT as appropriate in getopt.c
general:
  ab doesn't need to declare ap_optarg/ap_optind; fix a warning
  htdigest needs to call ap_initialize() to avoid segfault at
    startup

Revision 85068 - (view) (annotate) - [select for diffs]
Modified Fri Apr 28 01:37:42 2000 UTC (9 years, 7 months ago) by trawick
File length: 37074 byte(s)
Diff to previous 85063 (colored)
Build ab on Win32.
Fix some minor ab APR-ization issues.

Revision 85063 - (view) (annotate) - [select for diffs]
Modified Thu Apr 27 20:11:34 2000 UTC (9 years, 7 months ago) by trawick
File length: 37077 byte(s)
Diff to previous 85055 (colored)
Repair ap_poll() on UNIX systems where APR's poll flags
have different values than the system's poll flags (i.e.,
call get_revents() to translate flags before returning to
the caller; otherwise, they are quite meaningless :) ).

Fix ab's usage of the new ap_poll() and repair some APR-ization
breakage (e.g., not setting port prior to ap_connect()).

Uninteresting changes:

Change toascii to to_ascii in ab.c to avoid a conflict with MSVC++'s
toascii() (I enabled the NOT_ASCII logic in ab on Win32 recently to
verify that ap_xlate_X() returned the correct error codes and got
warnings on toascii.

get_revent() was reformatted unintentionally.  Sorry.

Revision 85055 - (view) (annotate) - [select for diffs]
Modified Thu Apr 27 05:56:41 2000 UTC (9 years, 7 months ago) by rbb
File length: 36974 byte(s)
Diff to previous 84881 (colored)
I have merged the two ab files together, the one from src/support and
src/lib/apr/test.  This means that the ab program in the support
directory is now portable using APR.  This has only gone through the
barest of testing, and needs to be tested much better.

Revision 84881 - (view) (annotate) - [select for diffs]
Modified Fri Mar 31 09:42:55 2000 UTC (9 years, 7 months ago) by fielding
File length: 33479 byte(s)
Diff to previous 84725 (colored)
Update to Apache Software License version 1.1

Revision 84725 - (view) (annotate) - [select for diffs]
Modified Fri Mar 10 00:07:37 2000 UTC (9 years, 8 months ago) by rbb
File length: 33623 byte(s)
Diff to previous 84056 (colored)
Fix all the License issues.  Including:
s/Apache Group/Apache Software Foundation/
s/1999/2000/
s/Sascha's license/ASF license

Revision 84056 - (view) (annotate) - [select for diffs]
Modified Wed Oct 27 22:36:20 1999 UTC (10 years, 1 month ago) by martin
File length: 33469 byte(s)
Diff to previous 83964 (colored)
Add CVS Revision number to ab.c to allow for detecting changes
which were not marked by a version number update. Additionally,
display base repository name (apache-2.0)

Also, merge revision 1.34 of the 1.3 branch:
 Made sure ApacheBench (ab) performs no more requests than
 specified on command line (option -n).

Submitted by: Jim Cox <jc@superlink.net>
Reviewed by: Ralf S. Engelschall
PR: 4839

Revision 83964 - (view) (annotate) - [select for diffs]
Modified Mon Oct 11 20:25:08 1999 UTC (10 years, 1 month ago) by dreid
File length: 33345 byte(s)
Diff to previous 83946 (colored)
These changes allow the support programs to compile on BeOS.

The biggest change is in ab.c where the functions that BeOS needs that
aren't the standard format are hidden behind a new ab_* define.  Tested
on FreeBSD and BeOS.

Revision 83946 - (view) (annotate) - [select for diffs]
Modified Thu Oct 7 21:53:46 1999 UTC (10 years, 1 month ago) by martin
File length: 33003 byte(s)
Diff to previous 83852 (colored)
Re-sync to most up-to-date ab.c version 1.3b

Revision 83852 - (view) (annotate) - [select for diffs]
Modified Tue Aug 31 05:35:52 1999 UTC (10 years, 3 months ago) by rbb
File length: 32638 byte(s)
Diff to previous 83750 (colored)
Changed pools to contexts.  Tested with prefork and pthread mpm's.  I'll
check this out tomorrow and make sure everything was checked in correctly.

Revision 83750 - (view) (annotate) - [select for diffs]
Added Tue Aug 24 06:46:03 1999 UTC (10 years, 3 months ago) by fielding
File length: 32623 byte(s)
Apache 1.3.9 baseline for the Apache 2.0 repository.

Obtained from: Apache 1.3.9 (minus unused files), tag APACHE_1_3_9
Submitted by: Apache Group

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.

  Diffs between and
  Type of Diff should be a

apache@apache.org
ViewVC Help
Powered by ViewVC 1.1.2