summaryrefslogtreecommitdiffstats
path: root/modules/test (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Tentative update to reduce noise in travis log (i.e. tons of AH02637).Christophe Jaillet2021-09-231-7/+7
| | | | | | | | | Just switch 2 tests in 'dialup_handler()' when deciding to DECLINE something. If mod_dialup is not configured, there is no need lo log anything about an mpm that doesn't support something that is finally not used. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1893582 13f79535-47bb-0310-9956-ffa450edef68
* mod_optional_hook_import: debug message at APLOG_DEBUG level.Yann Ylavic2021-09-211-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1893499 13f79535-47bb-0310-9956-ffa450edef68
* mod_example_hooks, mod_optional_fn_export: debug messages at APLOG_DEBUG levelYann Ylavic2021-09-201-1/+1
| | | | | | | Switch from APLOG_NOTICE/ERR to APLOG_DEBUG to avoid filling the logs. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1893477 13f79535-47bb-0310-9956-ffa450edef68
* "[mod_dav_fs etag handling] should really honor the FileETag setting".Graham Leggett2020-06-281-1/+1
| | | | | | | | | | | | | | | | - It now does. - Add "Digest" to FileETag directive, allowing a strong ETag to be generated using a file digest. - Add ap_make_etag_ex() and ap_set_etag_fd() to allow full control over ETag generation. - Add concept of "binary notes" to request_rec, allowing packed bit flags to be added to a request. - First binary note - AP_REQUEST_STRONG_ETAG - allows modules to force the ETag to a strong ETag to comply with RFC requirements, such as those mandated by various WebDAV extensions. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1879285 13f79535-47bb-0310-9956-ffa450edef68
* Fix a typoChristophe Jaillet2020-03-281-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1875811 13f79535-47bb-0310-9956-ffa450edef68
* Fix spelling errors found by codespell. [skip ci]Mike Rumph2020-02-131-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1873985 13f79535-47bb-0310-9956-ffa450edef68
* factor out TE=chunked checkingEric Covener2020-02-071-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1873748 13f79535-47bb-0310-9956-ffa450edef68
* Make mod_dialup.c compile when APR has no thread support.Stefan Sperling2019-01-081-0/+6
| | | | | | | +1 from covener and jim on dev@ git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1850757 13f79535-47bb-0310-9956-ffa450edef68
* http: Enforce consistently no response body with both 204 and 304 statuses.Yann Ylavic2018-07-301-3/+2
| | | | | | | | | | Provide AP_STATUS_IS_HEADER_ONLY() helper/macro to check for 204 or 304 and use it where some special treatment is needed when no body is expected. Some of those places handled 204 only. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1837056 13f79535-47bb-0310-9956-ffa450edef68
* Rename ap_casecmpstr[n]() to ap_cstr_casecmp[n](), update with APR doxygenWilliam A. Rowe Jr2016-06-091-6/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1747469 13f79535-47bb-0310-9956-ffa450edef68
* Added many log numbers to log statements thatRainer Jung2016-01-191-14/+6
| | | | | | | | | | | had none. Handled all files in modules/. I used the coccinelle script provided by Stefan. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1725392 13f79535-47bb-0310-9956-ffa450edef68
* Use new ap_casecmpstr[n]() functions where appropriate (not exhaustive).Yann Ylavic2015-11-231-37/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1715876 13f79535-47bb-0310-9956-ffa450edef68
* Revert r1715789: will re-commit without spurious functional changes.Yann Ylavic2015-11-231-6/+37
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1715869 13f79535-47bb-0310-9956-ffa450edef68
* Use new ap_casecmpstr[n]() functions where appropriate (not exhaustive).Yann Ylavic2015-11-231-37/+6
| | | | | | | [Reverted by r1715869] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1715789 13f79535-47bb-0310-9956-ffa450edef68
* Fix some style issues on files that can easily be synch'ed with 2.4.xChristophe Jaillet2015-09-301-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1705983 13f79535-47bb-0310-9956-ffa450edef68
* core, modules: like r1657897 but for core and other modules than mod_proxy.Yann Ylavic2015-03-101-3/+3
| | | | | | | | | | | | | | More uses of ap_map_http_request_error() and AP_FILTER_ERROR so that we never return an HTTP error status from a handler if some filter generated a response already. That is, from a handler, either ap_get_brigade() (an input filter) returned AP_FILTER_ERROR and we must forward it to ap_die(), or ap_pass_brigade() (an output filter) failed with any status and we must return AP_FILTER_ERROR in any case for ap_die() to determine whether a response is needed or not. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1665625 13f79535-47bb-0310-9956-ffa450edef68
* Style ('{' on same line as function definition)Christophe Jaillet2014-10-111-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1631021 13f79535-47bb-0310-9956-ffa450edef68
* Follow-up to r1593860:Jeff Trawick2014-06-281-1/+1
| | | | | | | Fix build breakage on non-syslog.h platforms. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1606358 13f79535-47bb-0310-9956-ffa450edef68
* Fix duplicate APLOGNOChristophe Jaillet2014-05-201-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1596108 13f79535-47bb-0310-9956-ffa450edef68
* PR56333: Add an API to resume a connection that a handler has previously ↵Eric Covener2014-05-111-1/+11
| | | | | | | | | | suspended. Submitted by: Artem <artemciy gmail.com>, Edward Lu <Chaosed0 gmail.com> Committed by: covener git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1593860 13f79535-47bb-0310-9956-ffa450edef68
* fix typo in include guardStefan Fritsch2013-08-151-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1514215 13f79535-47bb-0310-9956-ffa450edef68
* Added mod_policy to NetWare build.Guenter Knauf2013-01-202-0/+257
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1435836 13f79535-47bb-0310-9956-ffa450edef68
* CVE-2012-3499Stefan Fritsch2012-12-081-1/+2
| | | | | | | add missing html escaping git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1418752 13f79535-47bb-0310-9956-ffa450edef68
* NetWare build tweaks.Guenter Knauf2012-08-094-4/+4
| | | | | | | | | Make more use of internal makefile macros; axed now obsolete include paths. Submitted by: normw gknw net. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1371177 13f79535-47bb-0310-9956-ffa450edef68
* Various code clean upStefan Fritsch2012-07-151-5/+4
| | | | | | | | Submitted by: Christophe JAILLET <christophe jaillet wanadoo fr> PR: 52893 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1361801 13f79535-47bb-0310-9956-ffa450edef68
* Minor fixes for firehose and mod_policy:Rainer Jung2012-02-011-6/+6
| | | | | | | | | | | | | - err.h does not exist in Solaris. Judging from the expected content of err.h we don't use it at all, so remove inclusion of it. - The name DEFAULT_TYPE is to generic. Use POLICY_DEFAULT_TYPE instead. - Include apr header files from configured path instead of system path. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1239027 13f79535-47bb-0310-9956-ffa450edef68
* fix const warning with strchr->ap_strchr mappingJeff Trawick2012-01-151-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1231602 13f79535-47bb-0310-9956-ffa450edef68
* mod_policy: Add a new testing module to help server administratorsGraham Leggett2011-12-212-0/+1336
| | | | | | | | enforce a configurable level of protocol compliance on their servers and application servers behind theirs. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1221668 13f79535-47bb-0310-9956-ffa450edef68
* Add lots of unique tags to error log messagesStefan Fritsch2011-12-033-6/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1209766 13f79535-47bb-0310-9956-ffa450edef68
* Fixed broken NWGNUmakefile introduced with r1201194, r1201195.Guenter Knauf2011-11-141-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1201743 13f79535-47bb-0310-9956-ffa450edef68
* Choose consistent comments and remove explicitRainer Jung2011-11-121-5/+5
| | | | | | | | module names, because those references easily get outdated. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1201194 13f79535-47bb-0310-9956-ffa450edef68
* Cleanup effort in prep for GA push:Jim Jagielski2011-09-231-12/+12
| | | | | | | | Trim trailing whitespace... no func change git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1174751 13f79535-47bb-0310-9956-ffa450edef68
* refactor to pull setting of Accept-Ranges header into http_protocol.c whichEric Covener2011-09-081-1/+1
| | | | | | | | had been copied to other handlers. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1166663 13f79535-47bb-0310-9956-ffa450edef68
* adjustments of build priorities of modules without special dependenciesStefan Fritsch2011-07-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | all -> most: - mod_sed reallyall -> most: - mod_log_debug reallyall -> all: - mod_dav_lock - mod_echo - mod_charset_lite - mod_slotmem_plain - mod_dialup few -> all: - mod_data - mod_reflector - mod_asis most -> all: - mod_heartbeat - mod_heartmonitor - mod_watchdog most -> reallyall: - mod_imagemap - mod_cern_meta - mod_ident See thread at http://mail-archives.apache.org/mod_mbox/httpd-dev/201107.mbox/%3C201107052321.56063.sf@sfritsch.de%3E git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1146227 13f79535-47bb-0310-9956-ffa450edef68
* Introduce ap_(get|set)_core_module_config() functions/macros and use themStefan Fritsch2011-06-061-2/+1
| | | | | | | | | | | | everywhere. We know that the core module has module_index 0. Therefore we can save some pointer operations in ap_get_module_config(cv, &core_module) and ap_set_module_config(cv, &core_module, val). As these are called rather often, this may actually have some (small) measurable effect. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1132781 13f79535-47bb-0310-9956-ffa450edef68
* Use a var INSTALLBASE to simplify NetWare installation rules.Guenter Knauf2011-03-181-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1082821 13f79535-47bb-0310-9956-ffa450edef68
* Use var for prelude so its possible to change it at one place.Guenter Knauf2011-03-184-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1082811 13f79535-47bb-0310-9956-ffa450edef68
* NetWare build overhaul in order to compile on Linux.Guenter Knauf2011-03-084-8/+8
| | | | | | | Removed absolute paths to imp files. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1079487 13f79535-47bb-0310-9956-ffa450edef68
* NetWare build overhaul in order to compile on Linux.Guenter Knauf2011-03-085-33/+33
| | | | | | | Take 1. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1079407 13f79535-47bb-0310-9956-ffa450edef68
* Disable sendfile by default, as discussed atStefan Fritsch2010-09-041-2/+1
| | | | | | | http://mail-archives.apache.org/mod_mbox/httpd-dev/201007.mbox/<4C4355EE.2060605@rowe-clan.net> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@992689 13f79535-47bb-0310-9956-ffa450edef68
* Intel's compiler warns about assigning the non-enum value 0 to the Jeff Trawick2010-08-061-1/+1
| | | | | | | | | | | | | | enumeration apr_finfo_t.filetype, which is done when forgetting the previously-derived file type use the appropriate enum value APR_NOFILE instead Also change comparisons of the field with 0 to use APR_NOFILE instead, as is the practice of some existing code. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@983065 13f79535-47bb-0310-9956-ffa450edef68
* Removed obsolete include paths from NetWare makefiles.Guenter Knauf2010-07-234-16/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@966904 13f79535-47bb-0310-9956-ffa450edef68
* Use the new APLOG_USE_MODULE/AP_DECLARE_MODULE macros everywhere to takeStefan Fritsch2010-06-065-5/+5
| | | | | | | advantage of per-module loglevels git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@951895 13f79535-47bb-0310-9956-ffa450edef68
* added NetWare makefiles for test modules.Guenter Knauf2009-10-015-0/+1288
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@820754 13f79535-47bb-0310-9956-ffa450edef68
* Always make mod_*.h files available where they exist, modpath by modpathWilliam A. Rowe Jr2009-08-281-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@808722 13f79535-47bb-0310-9956-ffa450edef68
* clean up apr_time_from_msec() compatibility macrosJeff Trawick2009-04-021-5/+0
| | | | | | | | * where needed, base on APR_VERSION_AT_LEAST() so we remember what this is about * where not, axe git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@761084 13f79535-47bb-0310-9956-ffa450edef68
* Fixed :)Jim Jagielski2009-02-091-2/+0
| | | | | | | CORE_PRIVATE not in trunk git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@742682 13f79535-47bb-0310-9956-ffa450edef68
* Make dialup_callback a static function.Paul Querna2008-12-021-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@722396 13f79535-47bb-0310-9956-ffa450edef68
* Cleanup mod_dialup to compile with -std=c89 and -pedantic.Paul Querna2008-10-291-15/+22
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@708825 13f79535-47bb-0310-9956-ffa450edef68
* Introduce Suspendable Requests to the Event MPM.Paul Querna2008-09-202-0/+310
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using this basic framework, you can return SUSPENDED from an HTTP Handler, and then register a callback that is invoked by the MPM at a later time. This initial version only supports _timers_ as callbacks, but in the future I would like to add things like wait for socket activity, on a socket specified by the handler. Once in a callback, It is then the responsibility of the callback fucntion to finish the HTTP Request handling, but this alows you to do cool things like a fully async proxy, COMET support, or even rate limiting. To prove I'm not insane, I've inlcuded an example module, mod_dialup. You can configure it like this: <Location "/docs"> ModemStandard "V.32" </Location> And for static files inside that path, you will be rate limited to V.32 speeds, aka 9.6 kilobits/second. Does anyone besides Rüdiger read commit emails :-) ? I know there are likely huge problems with this, but I would like to see how far we can push the Event MPM, figure out what to do better, if there is anything, and then really dive into the 3.0 development before ApacheCon. * server/mpm/experimental/event/fdqueue.h: (timer_event_t): New structure to hold timer events and callback functions. * server/mpm/experimental/event/fdqueue.c (ap_queue_empty): Modify to also look at Timer Ring. (ap_queue_init): Initialize Timer Ring. (ap_queue_push_timer): New function, pushes a timer event into the queue. (ap_queue_pop_something): Renamed function, returns a timer event or a socket/pool for a worker thread to run. * server/mpm/experimental/event/event.c (process_socket): If the connection is in SUSPENDED state, don't force it into linger mode yet, the callback will have to take care of that. (push_timer2worker): New shortcut function, pushes timer event into queue for a worker to run. (timer_free_ring): New global data structure to recycle memory used by timer events. (timer_ring): New global data structure to hold active timer events. (g_timer_ring_mtx): Thread mutex to protect timer event data structures. (ap_mpm_register_timed_callback): New Function, registers a callback to be invoked by the MPM at a later time. (listener_thread): Calculate our wakeup time based on the upcoming Event Queue, and after pollset_poll runs, push any Timers that have passed onto worker threads to run. (worker_thread): Call new queue pop method, and if the Timer Event is non-null, invoke the callback. Once the callback is done, push the structure onto the timer_free_ring, to be recycled. (child_main): Initialize new mutex and ring structures. * server/config.c (ap_invoke_handler): Allow SUSPENDED aa valid return code from handlers. * modules/http/http_core.c (ap_process_http_async_connection): Don't close the connection when in SUSPENDED state. * modules/http/http_request.c (ap_process_request_after_handler): New function, body pulled from the old, ap_process_async_request. Split to let handlers invoke this so they don't need to know all of the details of finishing a request. (ap_process_async_request): If the handler returns SUSPENDED, don't do anything but return. * include/ap_mmn.h: Bump MMN. * include/ap_mpm.h (ap_mpm_register_timed_callback): New function. * include/httpd.h: (SUSPENDED): New return code for handlers. (request_rec::invoke_mtx): New mutex to protect callback invokcations from being run before the original handler finishes running. (conn_state_e): Add a suspended state. * include/http_request.h (ap_process_request_after_handler): New function to make it easier for handlers to finish the HTTP Request. * modules/test/config.m4: Add mod_dialup to build. * modules/test/mod_dialup.c: New rate limiting module, requires the Event MPM to work. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@697357 13f79535-47bb-0310-9956-ffa450edef68