summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* *) mod_http2: added support for bootstrapping WebSockets via HTTP/2, asStefan Eissing2023-06-2041-95/+2530
| | | | | | | | | | | | | | | described in RFC 8441. A new directive 'H2WebSockets on|off' has been added. The feature is by default not enabled. As also discussed in the manual, this feature should work for setups using "ProxyPass backend-url upgrade=websocket" without further changes. Special server modules for WebSockets will have to be adapted, most likely, as the handling if IO events is different with HTTP/2. HTTP/2 WebSockets are supported on platforms with native pipes. This excludes Windows. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910507 13f79535-47bb-0310-9956-ffa450edef68
* stealing numbersStefan Eissing2023-06-201-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910506 13f79535-47bb-0310-9956-ffa450edef68
* * mod_htt2: fixed an inconsistency in main connection io state after the ↵Stefan Eissing2023-06-161-2/+1
| | | | | | | | | | connection write encountered an error. Related to PR 66649. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910441 13f79535-47bb-0310-9956-ffa450edef68
* update log tags, as usualStefan Eissing2023-06-151-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910426 13f79535-47bb-0310-9956-ffa450edef68
* steal a numberStefan Eissing2023-06-151-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910425 13f79535-47bb-0310-9956-ffa450edef68
* openssl needs Ws2_32.lib for WSAGetLastError().jfclere2023-06-141-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910399 13f79535-47bb-0310-9956-ffa450edef68
* *) mod_http2: fixed a bug that could lead to a crash in main connectionStefan Eissing2023-06-137-12/+103
| | | | | | | | | | | output handling. This occured only when the last request on a HTTP/2 connection had been processed and the session decided to shut down. This could lead to an attempt to send a final GOAWAY while the previous write was still in progress. See PR 66646. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910386 13f79535-47bb-0310-9956-ffa450edef68
* Arrange ap_h1_response_out_filter() according to include/mod_core.h.Jean-Frederic Clere2023-06-121-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910368 13f79535-47bb-0310-9956-ffa450edef68
* fr doc rebuild.Lucien Gentis2023-06-102-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910341 13f79535-47bb-0310-9956-ffa450edef68
* fr doc XML file update.Lucien Gentis2023-06-101-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910340 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
* *) mod_http2: fixed a bug in flushing pending data on an already closedStefan Eissing2023-06-092-1/+8
| | | | | | | | | connection that could lead to a busy loop, preventing the HTTP/2 session to close down successfully. Fixed PR 66624. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910331 13f79535-47bb-0310-9956-ffa450edef68
* * Fix copy and paste errorRuediger Pluem2023-06-092-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910324 13f79535-47bb-0310-9956-ffa450edef68
* fix return codesGiovanni Bechis2023-06-081-3/+3
| | | | | | | spotted by Yann Ylavic git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910304 13f79535-47bb-0310-9956-ffa450edef68
* log an error if BIO_write(3) failsGiovanni Bechis2023-06-072-2/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910269 13f79535-47bb-0310-9956-ffa450edef68
* check BIO_read return valuesGiovanni Bechis2023-06-071-5/+16
| | | | | | | | submitted by Jiasheng Jiang bz #65922 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910268 13f79535-47bb-0310-9956-ffa450edef68
* mod_ext_filter: check exit status of filter processesGiovanni Bechis2023-06-072-2/+47
| | | | | | | | | | | | | Whenever a filter process returns a non-zero exit status, or is killed by a signal, return a HTTP 500 error, and log the reason. Ran top-level make update-log-msg-tags to update APLOGNO numbers. Submitted by: Dimitry Andric <dimitry@unified-streaming.com> Github: closes #296 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910267 13f79535-47bb-0310-9956-ffa450edef68
* there is a separate `connectiontimeout`Eric Covener2023-06-061-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910253 13f79535-47bb-0310-9956-ffa450edef68
* fix link in commentGiovanni Bechis2023-06-061-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910252 13f79535-47bb-0310-9956-ffa450edef68
* fr doc rebuild.Lucien Gentis2023-06-0310-17/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910203 13f79535-47bb-0310-9956-ffa450edef68
* fr doc XML files updates.Lucien Gentis2023-06-032-9/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910202 13f79535-47bb-0310-9956-ffa450edef68
* CI: re-add TEST_H2 apr cache ignore, still needed. :(Stefan Eissing2023-06-011-0/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910165 13f79535-47bb-0310-9956-ffa450edef68
* CI: re-enable apr caching for TEST_H2, require newer curl for test_h2_601_05Stefan Eissing2023-06-012-4/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910164 13f79535-47bb-0310-9956-ffa450edef68
* CI: force reset of cached apr for TEST_H2, it seems to be brokenStefan Eissing2023-06-011-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910163 13f79535-47bb-0310-9956-ffa450edef68
* *) core: add `final_resp_passed` flag to request_rec to allowStefan Eissing2023-06-018-49/+58
| | | | | | | | | | ap_die() to judge if it can send out a response. Bump mmn. Enable test cases that check errors during response body to appear as error on client side. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910161 13f79535-47bb-0310-9956-ffa450edef68
* * mod_proxy_http2: fixed using the wrong "bucket_alloc" from the backendStefan Eissing2023-06-018-77/+126
| | | | | | | | | | | | | | | | | | connection when sending data on the frontend one. This caused crashes or infinite loops in rare situations. * mod_proxy_http2: fixed a bug in retry/response handling that could lead to wrong status codes or HTTP messages send at the end of response bodies exceeding the announced content-length. * mod_proxy_http2: fix retry handling to not leak temporary errors. On detecting that that an existing connection was shutdown by the other side, a 503 response leaked even though the request was retried on a fresh connection. * mod_http2: fixed a bug that did cleanup of consumed and pending buckets in the wrong order when a bucket_beam was destroyed. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910157 13f79535-47bb-0310-9956-ffa450edef68
* tests: synch with recent changes from mod_h2 repositoryStefan Eissing2023-06-018-50/+233
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1910156 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
* *) mod_proxy_http2: fix retry handling to not leak temporary errors.Stefan Eissing2023-05-224-33/+34
| | | | | | | | | | On detecting that that an existing connection was shutdown by the other side, a 503 response leaked even though the request was retried on a fresh connection. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909989 13f79535-47bb-0310-9956-ffa450edef68
* tests: parameterize some h2 tests to make fail cases better visibleStefan Eissing2023-05-222-34/+37
| | | | | | | | - make conf setup for test_h2_004_41 local git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909982 13f79535-47bb-0310-9956-ffa450edef68
* When we are at flush_max_threshold and the next bucket is a metadata (i.e. ↵Christophe Jaillet2023-05-211-30/+30
| | | | | | | | next->length == 0), we still need to re-check for flush_max_threshold and associated optimisation (is_in_memory_bucket()) when we process this metadata bucket in the next iteration of the loop. Follow-up to r1892450. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909966 13f79535-47bb-0310-9956-ffa450edef68
* The default value of FlushMaxThreshold is defined as AP_FLUSH_MAX_THRESHOLD, ↵Christophe Jaillet2023-05-211-1/+1
| | | | | | | | which is 65535. [skip ci] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909959 13f79535-47bb-0310-9956-ffa450edef68
* *) mod_http2: avoid double chunked-encoding on internal redirects.Stefan Eissing2023-05-194-2/+25
| | | | | | | | PR 66597 [Yann Ylavic, Stefan Eissing] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909932 13f79535-47bb-0310-9956-ffa450edef68
* mod_authnz_ldap.c: Make sure the authentication variables are set inGraham Leggett2023-05-192-0/+20
| | | | | | | | all cases where another module is the source of the authentication, and that authenticated user is looked up in LDAP. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909928 13f79535-47bb-0310-9956-ffa450edef68
* Update log-message tags.Graham Leggett2023-05-191-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909927 13f79535-47bb-0310-9956-ffa450edef68
* Sign with the signer key. Previously the verify key was used, which only workedGraham Leggett2023-05-191-2/+3
| | | | | | | if the signing and verifying keys were the same. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909926 13f79535-47bb-0310-9956-ffa450edef68
* a few tweaks to SetEnvIfExpr docEric Covener2023-05-151-3/+4
| | | | | | | | | From a question on IRC, show a backreference example. Fix a bad copy/paste where a link to <if> was present. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909833 13f79535-47bb-0310-9956-ffa450edef68
* fr doc rebuild.Lucien Gentis2023-05-133-576/+611
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909795 13f79535-47bb-0310-9956-ffa450edef68
* fr doc XML file update.Lucien Gentis2023-05-131-1/+39
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909794 13f79535-47bb-0310-9956-ffa450edef68
* *) mod_http2: v2.0.15 with the following fixes and improvementsStefan Eissing2023-05-1229-115/+586
| | | | | | | | | | | | | | | | | | | | | | | - New directive 'H2EarlyHint name value' to add headers to a response, picked up already when a "103 Early Hints" response is sent. 'name' and 'value' must comply to the HTTP field restrictions. This directive can be repeated several times and header fields of the same names add. Sending a 'Link' header with 'preload' relation will also cause a HTTP/2 PUSH if enabled and supported by the client. - Fixed an issue where requests were not logged and accounted in a timely fashion when the connection returns to "keepalive" handling, e.g. when the request served was the last outstanding one. This led to late appearance in access logs with wrong duration times reported. - Accurately report the bytes sent for a request in the '%O' Log format. This addresses #203, a long outstanding issue where mod_h2 has reported numbers over-eagerly from internal buffering and not what has actually been placed on the connection. The numbers are now the same with and without H2CopyFiles enabled. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909769 13f79535-47bb-0310-9956-ffa450edef68
* ignore errors due to races if a parallel mkdir.sh alreadyGiovanni Bechis2023-05-091-1/+7
| | | | | | | created the dir git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909707 13f79535-47bb-0310-9956-ffa450edef68
* dav_fs_cmds is declared twice in the file... VS 2022 complains about it.Jean-Frederic Clere2023-05-051-2/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909628 13f79535-47bb-0310-9956-ffa450edef68
* Follow up to r1909429: Fix scope/block syntax.Yann Ylavic2023-05-041-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909606 13f79535-47bb-0310-9956-ffa450edef68
* tests, adding ignore for warnings that child did not exist in timeStefan Eissing2023-05-021-0/+1
| | | | | | | | - this seems CI related, does not happen on local machine git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909568 13f79535-47bb-0310-9956-ffa450edef68