summaryrefslogtreecommitdiffstats
path: root/support (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ab: Don't print the banner/copyright when -Q is specified.Yann Ylavic2023-06-201-2/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910520 13f79535-47bb-0310-9956-ffa450edef68
* ab: Add POLLERR and POLLHUP to reqevents for implementations that use/need it.Yann Ylavic2023-06-201-1/+11
| | | | | | | | | Also, apr_pollset_remove() might return APR_NOTFOUND if a connection is reset while being poll()ed, don't treat it as an error. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910519 13f79535-47bb-0310-9956-ffa450edef68
* ab: Increase MAX_CONCURRENCY hard limit (from 20K to 200K).Yann Ylavic2023-06-201-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910518 13f79535-47bb-0310-9956-ffa450edef68
* ab: More accurate stats for time limited (-t) runs.Yann Ylavic2023-06-201-12/+35
| | | | | | | | | | | | | | | | | | When ab runs for a limited time, the number of requests configured (or the default MAX_REQUESTS if not configured) may be lower than than the number of requests actually/finally achieved, in which case the stats per request is a window of the actual stats since we can't store all the results. Rather than taking the last N requests of the run for the stats, do the mean of all the requests reusing the same window slot, and print that. If no number of requests is configured for a time limited run, it will stop only at the end of the time (i.e. MAX_REQUESTS is ignored for the end of test condition). So MAX_REQUESTS is renamed to TIMED_REQUESTS while at it. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910517 13f79535-47bb-0310-9956-ffa450edef68
* ab: Follow up to r1910515: Update global counter too..Yann Ylavic2023-06-201-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910516 13f79535-47bb-0310-9956-ffa450edef68
* ab: Count keepalive aborted connections separately.Yann Ylavic2023-06-201-1/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910515 13f79535-47bb-0310-9956-ffa450edef68
* ab: Don't (doubly) count errors as err_length if not actually reading.Yann Ylavic2023-06-201-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910514 13f79535-47bb-0310-9956-ffa450edef68
* ab: Fix crash with -W when exiting earlya on fatal error.Yann Ylavic2023-06-201-237/+308
| | | | | | | | | | | | | | | When multiple threads are failing (e.g. read/write timeout) it's not thread-safe to simply/concurrently print the stats and exit. This can result in garbage being printed or a crash. Let's cleanly shutdown the threads and do the printing at a single point. For the places where we want to fail but threads are not started yet we can simply exit still, so to simplify the stats are not printed in an atexit() handler. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910513 13f79535-47bb-0310-9956-ffa450edef68
* do not run strlen(3) on a NULL valueGiovanni Bechis2023-06-091-0/+4
| | | | | | | bz #66639 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910334 13f79535-47bb-0310-9956-ffa450edef68
* ab: STATE_CONNECTED is not used anymore.Yann Ylavic2023-05-301-8/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910136 13f79535-47bb-0310-9956-ffa450edef68
* ab: Use new openssl-3 API when available.Yann Ylavic2023-03-161-6/+39
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908440 13f79535-47bb-0310-9956-ffa450edef68
* s/to to/to/Christophe Jaillet2023-03-021-1/+1
| | | | | | [skip ci] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1907993 13f79535-47bb-0310-9956-ffa450edef68
* add -T flag to truncate rotated logs onlyEric Covener2023-01-071-6/+21
| | | | | | | | for strftime formats that will loop back on themselves, like day of month or weekday name. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1906433 13f79535-47bb-0310-9956-ffa450edef68
* minor tweak to -n with size rotationEric Covener2023-01-061-0/+14
| | | | | | | | Without -t, One line can be added to base "logfile" even when it's over the size limit already. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1906428 13f79535-47bb-0310-9956-ffa450edef68
* r1900362 followup: clang -Wexpansion-to-definedEric Covener2022-05-051-3/+6
| | | | | | | | | ab.c:2056:5: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined] #if USE_SIGMASK git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1900571 13f79535-47bb-0310-9956-ffa450edef68
* ab: Add the -W option to use worker threads.Yann Ylavic2022-04-281-521/+889
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows for multiple CPUs to handle the load, the number of requests and concurrency level asked are distributed over the configured number of workers, allowing for as much parallelism. On unixes (only for now), -W0 will use all the CPUs available on the system. To avoid synchronization during runtime, the stats and requests times are gathered per worker and consolidated at the end of the run before being printed. Connection closes, keepalives and errors are now handled in a single place, namely cleanup_connection(), which takes care of the good/bad state of each request based on the response fully received or not. When multiple workers are running, SIGINT is handled by the main thread only and masked in workers, workers are asked to stop and woken up if waiting in poll(). A single worker is started first to determine the connectivity with the peer, if that fails (10 tries) ab will stop early still without starting the other workers, otherwise the first worker will signal the main thread to start the others. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1900362 13f79535-47bb-0310-9956-ffa450edef68
* ab: Allow for TLSv1.3 when the SSL library supports it.Yann Ylavic2022-04-221-29/+55
| | | | | | | | | | | | | | | | When TLS1_3_VERSION is defined by the SSL library, bump the maximum TLS protocol to that and use it for "-f ALL" or "-f TLSv1.3". This mixes proposed patches from BZ 63594 and 64699. BZ: 63594, 64699 Submitted by: abhilash <abhilash1232 gmail.com> Submitted by: xiaolongx.jiang intel.com Submitted & Reviewed by: ylavic git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1900157 13f79535-47bb-0310-9956-ffa450edef68
* ab: apr_base64_encode already NUL-terminate the output.Yann Ylavic2022-04-221-5/+2
| | | | | | | | | And returns the length including the trailing \0, so setting it at that length is off by +1. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1900152 13f79535-47bb-0310-9956-ffa450edef68
* Fix alignment in an 'if' block.Christophe Jaillet2022-04-201-5/+5
| | | | | | [skip ci] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1900064 13f79535-47bb-0310-9956-ffa450edef68
* ab: Fix the detection for when the server performed a legitimateGraham Leggett2022-02-091-2/+10
| | | | | | | | | connection close as per RFC7230 6.3.1. We must check whedther the connection was previously kept alive, and not whether the current closed request is keepalive. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1897912 13f79535-47bb-0310-9956-ffa450edef68
* ab: Add an optional ramp delay when starting concurrent connections soGraham Leggett2022-02-081-7/+83
| | | | | | | | | as to not trigger denial of service protection in the network. Report levels of concurrency achieved in cases where the test completes before full concurrency is achieved. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1897866 13f79535-47bb-0310-9956-ffa450edef68
* Reinstate r1897458 accidentally reverted in r1897760.Graham Leggett2022-02-081-43/+80
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1897861 13f79535-47bb-0310-9956-ffa450edef68
* *) core/mod_ssl/mpm_event: reverting changes to nonblocing SSL handshakesStefan Eissing2022-02-041-80/+43
| | | | | | | | | | to stabilize CI tests again. Previous revision of trunk has been copied to branches/trunk-ssl-handshake-unblocking to make those into a PR where changes can be discussed and tested separately. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1897760 13f79535-47bb-0310-9956-ffa450edef68
* check BIO_new(3) return valuesGiovanni Bechis2022-02-011-3/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1897662 13f79535-47bb-0310-9956-ffa450edef68
* ab: Respond appropriately to SSL_ERROR_WANT_READ and SSL_ERROR_WANT_WRITE.Graham Leggett2022-01-251-43/+80
| | | | | | | | Previously the correct event was polled for, but the response to the poll would call write instead of read, and read instead of write. PR 55952 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1897458 13f79535-47bb-0310-9956-ffa450edef68
* Revert stray modification in r1897336.Graham Leggett2022-01-241-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1897408 13f79535-47bb-0310-9956-ffa450edef68
* When failing, we need to explicitly set the connection state.Graham Leggett2022-01-221-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1897336 13f79535-47bb-0310-9956-ffa450edef68
* As in r1877467 for mod_ssl, for OpenSSL 1.1.1+ require that OpenSSL isJoe Orton2021-12-071-0/+15
| | | | | | | | | | | configured with a suitable entropy source and don't try to seed it from getpid etc. * support/ab.c (main): Check RAND_status(). (ssl_rand_seed, ssl_rand_choosenum): Drop for OpenSSL 1.1.1+. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1895659 13f79535-47bb-0310-9956-ffa450edef68
* * support/ab.c (main): Check apr_getopt() returned APR_EOF, fixing clangJoe Orton2021-12-031-2/+2
| | | | | | | | | warning: support/ab.c:2343:13: warning[deadcode.DeadStores]: Although the value stored to 'status' is used in the enclosing expression, the value is never actually read from 'status' git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1895559 13f79535-47bb-0310-9956-ffa450edef68
* * server/mpm/event/event.c, Joe Orton2021-05-171-19/+18
| | | | | | | | | | | | | | | | server/mpm/simple/simple_run.c, support/htcacheclean.c: Adjust use of APR_RING macros to ensure the APR_RING_HEAD is always embedded in a containing structure, to avoid warnings with GCC 11. (apr_ring.h also suggests this is best practice) See also: https://bugzilla.redhat.com/show_bug.cgi?id=1957353 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98503 msgid <814cca2a-1992-3fae-bb0e-c84b3d09b73b@gmail.com> Github: closes #186 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1889957 13f79535-47bb-0310-9956-ffa450edef68
* * support/htpasswd.c: Fix typo. [skip ci]Joe Orton2020-12-161-1/+1
| | | | | | | | Submitted by: Ikko Ashimine <eltociear gmail.com> Github: closes #149 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884509 13f79535-47bb-0310-9956-ffa450edef68
* Fix misleading crypt vs hash terminology in ht* and dbmmanage tools.Yann Ylavic2020-12-083-56/+56
| | | | | | | | | | | | | What the htpasswd, htdbm and dbmmanage tools do is hashing passwords, not encrypting them, so fix the terminology in manpages, docs, --help, comments and function names. Submitted by: Michele Preziuso <mpreziuso kaosdynamics.com> Reviewed by: ylavic Github: closes #153 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1884207 13f79535-47bb-0310-9956-ffa450edef68
* * support/htpasswd.c (usage): Fix typo. [skip ci]Joe Orton2020-06-101-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1878703 13f79535-47bb-0310-9956-ffa450edef68
* Windows : do not include ap_config_auto.h Steffen Land2020-05-131-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1877693 13f79535-47bb-0310-9956-ffa450edef68
* * support/passwd_common.c (mkhash): Fix salt buffer size for SHA2Joe Orton2020-05-011-1/+1
| | | | | | | (caught by gcc 10). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1877251 13f79535-47bb-0310-9956-ffa450edef68
* sort safe_env_lst Giovanni Bechis2020-04-221-2/+2
| | | | | | | bz 65371 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1876815 13f79535-47bb-0310-9956-ffa450edef68
* * support/suexec.c (main): Report error string after failure fromJoe Orton2020-04-201-2/+4
| | | | | | | setgid/initgroups or setuid. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1876745 13f79535-47bb-0310-9956-ffa450edef68
* * support/suexec.c (safe_strtol): New function.Joe Orton2020-04-201-2/+29
| | | | | | | | | | (main): Use ^ to be avoid using atoi(); try to catch more string to integer and integer to uid/gid conversion errors/surprises. PR: 33207 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1876744 13f79535-47bb-0310-9956-ffa450edef68
* * Whitespace style fixes. No functional change.Ruediger Pluem2020-04-141-2/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1876493 13f79535-47bb-0310-9956-ffa450edef68
* PR64313 htcacheclean: Empty directories in CacheRoot are still present even ↵Jean-Frederic Clere2020-04-141-0/+9
| | | | | | after using "-t" git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1876484 13f79535-47bb-0310-9956-ffa450edef68
* silence an "uninitialized value" warningGiovanni Bechis2020-03-231-1/+6
| | | | | | | bz 63307 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1875534 13f79535-47bb-0310-9956-ffa450edef68
* fix apxs for non-destdir buildsEric Covener2020-03-191-1/+6
| | | | | | | | | | subtr(...,0, -1) chops off a character and leaves relative path. (you will need to re-run configure) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1875429 13f79535-47bb-0310-9956-ffa450edef68
* * support/suexec.c (clean_env): Revert use of ap_calloc inJoe Orton2020-02-181-1/+1
| | | | | | | | r1874156 which broke the build. https://travis-ci.org/apache/httpd/builds/651858409 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1874158 13f79535-47bb-0310-9956-ffa450edef68
* convert malloc(3) into ap_mallocGiovanni Bechis2020-02-181-1/+1
| | | | | | | bz 64049 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1874156 13f79535-47bb-0310-9956-ffa450edef68
* Fix spelling errors found by codespell. [skip ci]Mike Rumph2020-02-134-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1873985 13f79535-47bb-0310-9956-ffa450edef68
* Allow instdso.sh to be found while cross compiling.Graham Leggett2019-12-281-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1872062 13f79535-47bb-0310-9956-ffa450edef68
* Add support for cross compiling to apxs. If apxs is being executed from ↵Graham Leggett2019-12-281-5/+10
| | | | | | | | | | somewhere other than its target location, add that prefix to includes and library directories. Without this, apxs would fail to find config_vars.mk and exit. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1872042 13f79535-47bb-0310-9956-ffa450edef68
* ab.c: Replace zeustech.net with web archive linkEric Covener2019-12-271-3/+4
| | | | | | | | | | | | | closes #84 https://github.com/apache/httpd/pull/84 https://issues.apache.org/jira/browse/LEGAL-502 Submitted By: Josua Schmid <josua.schmid renuo.ch> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1872033 13f79535-47bb-0310-9956-ffa450edef68
* Fix a typoChristophe Jaillet2019-09-201-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1867257 13f79535-47bb-0310-9956-ffa450edef68
* -l and -L are not exclusive.Christophe Jaillet2019-08-091-11/+15
| | | | | | | Document the 'G' suffix. Fix some minor style issues. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864784 13f79535-47bb-0310-9956-ffa450edef68