summaryrefslogtreecommitdiffstats
path: root/include/http_core.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix memory corruption problem with ap_custom_response() function.Jeff Trawick2004-03-241-1/+9
| | | | | | | | | | | | The core per-dir config would later point to request pool data that would be reused for different purposes on different requests. This is based on an old 1.3 patch submitted by Will Lowe. It needs a minor tweak before committing to 1.3, but he had it pretty darn close. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103120 13f79535-47bb-0310-9956-ffa450edef68
* Satisfy directives now can be influenced by a surrounding <Limit>André Malo2004-03-141-1/+1
| | | | | | | | | container. PR: 14726. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102954 13f79535-47bb-0310-9956-ffa450edef68
* fix name of The Apache Software FoundationAndré Malo2004-02-091-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102619 13f79535-47bb-0310-9956-ffa450edef68
* fix copyright dates according to the first check inAndré Malo2004-02-071-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102548 13f79535-47bb-0310-9956-ffa450edef68
* apply Apache License, Version 2.0André Malo2004-02-061-53/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102525 13f79535-47bb-0310-9956-ffa450edef68
* update license to 2004.André Malo2004-01-011-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102135 13f79535-47bb-0310-9956-ffa450edef68
* Rework of the recursion stopper - collapse recursion counters into one functionAndré Malo2003-05-301-11/+3
| | | | | | | Reviewed by: Justin Erenkrantz git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100095 13f79535-47bb-0310-9956-ffa450edef68
* Prevent the server from crashing when entering infinite loops. TheAndré Malo2003-05-191-0/+26
| | | | | | | | | | | | new LimitInternalRecursion directive configures limits of subsequent internal redirects and nested subrequests, after which the request will be aborted. [William Rowe, Jeff Trawick, Andr� Malo] PR: 19753 (and probably others) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99911 13f79535-47bb-0310-9956-ffa450edef68
* finished that boring job:André Malo2003-02-031-1/+1
| | | | | | | | | update license to 2003. Happy New Year! ;-)) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98573 13f79535-47bb-0310-9956-ffa450edef68
* here we go. add a directive that will keep %2f from beingKen Coar2003-01-231-1/+2
| | | | | | | | decoded into '/', allowing the *_walk to do their magic and return 404 if it's in the path, and allowing it in the path-info. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98479 13f79535-47bb-0310-9956-ffa450edef68
* move rfc1413 code to a new module "metadata:mod_ident".André Malo2003-01-181-2/+8
| | | | | | | | | | | | | | The rfc1413 code itself is mostly c&p, but can still bear some rework ... This patch removes the global ap_rfc1413 function and the ap_rfc1413_timeout variable. It also introduces a new config directive IdentityCheckTimeout (default 30 sec). Reviewed by: Justin Erenkrantz git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98320 13f79535-47bb-0310-9956-ffa450edef68
* comment an endif for clarityBrian Pane2002-12-151-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97930 13f79535-47bb-0310-9956-ffa450edef68
* mod_logio modification: count bytes-sent after the writev or sendfileBrian Pane2002-10-251-0/+11
| | | | | | | | | | | | | | | | | call in the core_output_filter, in order to get a more accurate count of the total bytes transmitted in cases where the client terminates the connection before the entire response is sent. Note: This works by adding a flush bucket to each response when mod_logio is used; the side-effect is that pipelined responses get broken up into separate network writes per request (but there's no impact on pipelining when mod_logio is not enabled). Submitted by: Bojan Smojver <bojan@rexursive.com> Reviewed by: Brian Pane git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97300 13f79535-47bb-0310-9956-ffa450edef68
* Introduce an EnableSendfile directive (defaulted to ON) to allow usersWilliam A. Rowe Jr2002-10-141-1/+6
| | | | | | | | | | to disable sendfile mechanics for NFS volume mounts and other kernel objects that don't support sendfile. And EnableSendfile off can be used to help narrow bugs down to the sendfile mechanics or eliminate the possiblity that sendfile is a factor on any given platform. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97205 13f79535-47bb-0310-9956-ffa450edef68
* Add logic to the default_handler to enable script delivery to scriptGreg Stein2002-10-031-0/+10
| | | | | | | | | processors located in the output filter stack. This is on by default, but will change "soon" to off -- the processors will then need to enable it when they are installed into the filter chain. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97065 13f79535-47bb-0310-9956-ffa450edef68
* Added EnableMMAP directive to allow the server administrator toBrian Pane2002-05-121-0/+9
| | | | | | | prevent mmap of file buckets upon read. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95040 13f79535-47bb-0310-9956-ffa450edef68
* Whoops, missed this. Moved these symbols to mod_core.hWilliam A. Rowe Jr2002-04-051-9/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94469 13f79535-47bb-0310-9956-ffa450edef68
* Match the new APR_BUCKET_BUFF_SIZE. We want this to be slightly less thanCliff Woolley2002-04-011-2/+2
| | | | | | | | 8KB to leave room for the various allocators' internal structures while still fitting into a total of 8KB. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94356 13f79535-47bb-0310-9956-ffa450edef68
* Final commit to add ap_rset_content_type accessor. Add AddOutputFiltersbyTypeBill Stoddard2002-03-201-0/+3
| | | | | | | filters during call to ap_rset_content_type() git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94028 13f79535-47bb-0310-9956-ffa450edef68
* Update our copyright for this year.Roy T. Fielding2002-03-131-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93918 13f79535-47bb-0310-9956-ffa450edef68
* Introduce AddOutputFilterByType directive.Justin Erenkrantz2002-02-191-0/+2
| | | | | | | | | AddOutputFilterByType DEFLATE text/html (I will add docco soon, I promise. If someone beats me to it, cool...) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93490 13f79535-47bb-0310-9956-ffa450edef68
* Replaced some more ap_add_output_filter() calls withBrian Pane2002-01-271-0/+4
| | | | | | | ap_add_output_filter_handle() for efficiency git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93051 13f79535-47bb-0310-9956-ffa450edef68
* Performance improvement: incorporated the use of the newBrian Pane2002-01-271-0/+8
| | | | | | | | ap_add_input_filter_handle() and ap_add_output_filter_handle() functions for core filters git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93040 13f79535-47bb-0310-9956-ffa450edef68
* Bring forward the FileETag directive enhancement from 1.3.23-dev.Ken Coar2002-01-111-0/+23
| | | | | | | | (Passes all 61 of the apache/etags.t test.) Bump MMN due to change to core_dir_config structure (new fields at end). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92830 13f79535-47bb-0310-9956-ffa450edef68
* Fix LimitRequestBody directive by moving the relevant code fromJustin Erenkrantz2002-01-021-3/+3
| | | | | | | | | | | | | ap_*_client_block to ap_http_filter (aka HTTP_IN). This is the only appropriate place for limit checking to occur (otherwise, chunked input is not correctly limited). Also changed the type of limit_req_body to apr_off_t to match the other types inside of HTTP_IN. Also made the strtol call for limit_req_body a bit more robust. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92700 13f79535-47bb-0310-9956-ffa450edef68
* Generalized the recent prep_walk_cache optimizations to allow otherBrian Pane2002-01-011-10/+40
| | | | | | | | modules to register "notes" within the array of working data in the core_request_config git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92697 13f79535-47bb-0310-9956-ffa450edef68
* Performance fix for prep_walk_cache():Brian Pane2001-12-311-0/+11
| | | | | | | | | | | | Moved the directory/location/file-walk caches from the request's pool userdata hash table to the core_request_config struct. This change removes about 60% of the processing time from prep_walk_cache(). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92684 13f79535-47bb-0310-9956-ffa450edef68
* Jeff's guess, right on. [Thought I committed it all... gotta grab aWilliam A. Rowe Jr2001-12-131-1/+1
| | | | | | | clean parallel tree, all my parallel trees are dirty again.] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92447 13f79535-47bb-0310-9956-ffa450edef68
* hack up core_dir_config so that server/core.c compiles againJeff Trawick2001-12-131-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92446 13f79535-47bb-0310-9956-ffa450edef68
* change the signature of ap_custom_response() to use aIan Holsman2001-11-181-2/+1
| | | | | | | | | | | | "const char *" instead of a "char *". PR: 8791 Submitted by: Kurt Brown kurtb149@yahoo.com Reviewed by: Ian Holsman git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92024 13f79535-47bb-0310-9956-ffa450edef68
* Remove the Win32 script-processing exception from mod_cgi, andWilliam A. Rowe Jr2001-09-171-19/+0
| | | | | | | | | | | | | | | roll build_command_line/build_argv_list into a unified, overrideable ap_cgi_build_command optional function. Eliminates a ton of Win32 cruft from core.c for registry parsing. Win32 (through the default handler, and newest changes to the apr_proc_create fn) continues to serve .bat/.exe files. This is in preparation for adding modules/arch/win32/mod_win32 for scripts. Please review the mod_cgi.c behavior very carefully. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91058 13f79535-47bb-0310-9956-ffa450edef68
* Changed syntax of Set{Input|Output}Filter. The list of filtersWilliam A. Rowe Jr2001-08-301-4/+4
| | | | | | | | | | | | | | | must be semicolon delimited (if more than one filter is given.) The Set{Input|Output}Filter directive now overrides a parent container's directive (e.g. SetInputFilter in <Directory /web/foo> will override any SetInputFilter directive in <Directory /web>.) This new syntax is more consistent with Add{Input|Output}Filter directives defined in mod_mime. Also cures a bug in prior releases where the Set{Input|Output}Filter directive would corrupt the global configuration if the multiple directives were nested. [William Rowe] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90799 13f79535-47bb-0310-9956-ffa450edef68
* Since the mod_mime patch was applied, here is the rest of the patch toWilliam A. Rowe Jr2001-08-301-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | introduce the ForceType and SetHandler [absolute references] directly into the very top of the fixups phase. This means these will always override _any_ mime module, not just mod_mime. Ergo, other mime modules can continue to set charset, encodings, etc. Since these are globals, they belong in the core. This highlights a very serious drawback to the type_checker hook. By using run first, a module that identifies _partial_ information (maybe just the content type) won't pass the query on to other modules, like mod_mime, that might further define the encoding or charset. The type_checker hook should clearly become a run-all, and the modules should decline if they see someone ahead of them answered a question they were going to try to figure. Which means - if type_checker becomes RUN_ALL - this new override hook fn should become a type_checker again - and RUN_REALLY_FIRST, and let other modules _choose_ not to override this election. (We can run it again at the end, for a recount ;) Votes? git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90797 13f79535-47bb-0310-9956-ffa450edef68
* Eliminate proxy: (and all other 'special') processing from theWilliam A. Rowe Jr2001-08-261-6/+0
| | | | | | | | | | | | | | | ap_directory_walk() phase. Modules that want to use special walk logic should refer to the mod_proxy map_to_location example, with it's proxy_walk and proxysection implementation. This makes either directory_walk flavor much more legible, since that phase only runs against real <Directory > blocks. On a technical note, this patch also forces the Directory to be canonical (unless it is "/" or a regex.) It also allows us to be more explicit when declaring <Directory > block errors. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90684 13f79535-47bb-0310-9956-ffa450edef68
* sec, sec, who's got a sec? This gave me a headache, but I had to clearWilliam A. Rowe Jr2001-08-241-2/+2
| | | | | | | | | out the last patch before I rearranged this to be _readable_. Next step for everyone's sanity, provide <Proxy > directives ;) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90646 13f79535-47bb-0310-9956-ffa450edef68
* Add the ability to extend the methods that Apache understandsRyan Bloom2001-08-021-1/+1
| | | | | | | | | | | | and have those methods <limit>able in the httpd.conf. It uses the same bit mask/shifted offset as the original HTTP methods such as M_GET or M_POST, but expands the total bits from an int to an ap_int64_t to handle more bits for new request methods than an int provides. Submitted by: Cody Sherr <csherr@covalent.net> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89869 13f79535-47bb-0310-9956-ffa450edef68
* Provide the same optimization to the dir_config structure to trackWilliam A. Rowe Jr2001-07-301-1/+7
| | | | | | | d_is_absolute, along with d_is_fnmatch. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89791 13f79535-47bb-0310-9956-ffa450edef68
* Doc formatting fixesWilliam A. Rowe Jr2001-07-271-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89749 13f79535-47bb-0310-9956-ffa450edef68
* Define a hook for fetching management/status items.Greg Stein2001-06-131-0/+44
| | | | | | | | | | | | This patch was submitted by Ian Holsman. Greg revised some names, applied the Apache style, and namespace-prefixed the public symbols. Minor bugfix in the use of the hook implementation macro. Submitted by: Ian Holsman <IanH@cnet.com> Reviewed by: Greg Stein git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89364 13f79535-47bb-0310-9956-ffa450edef68
* Change AP_MIN_BYTES_TO_WRITE from 9000 to 8192 to match the bucket bufferCliff Woolley2001-04-131-2/+2
| | | | | | | | | | size. This fixes the 8192-808-8192-808 iovec-length sequence problem on platforms using writev() (eg OS/2). Reviewed by: Brian Havard git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88843 13f79535-47bb-0310-9956-ffa450edef68
* tweak ap_get_remote_host() so that the caller can find out if she gotJeff Trawick2001-03-091-2/+4
| | | | | | | | | back an IP address mod_access needed to know this, but the old code didn't handle IPv6 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88484 13f79535-47bb-0310-9956-ffa450edef68
* just making server_signature enum decl easier to read (for both humans and ↵Doug MacEachern2001-02-221-2/+10
| | | | | | C::Scan) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88274 13f79535-47bb-0310-9956-ffa450edef68
* shift some declarations over to mod_core.h where they're totally private.Greg Stein2001-02-181-13/+25
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88226 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright to 2001Roy T. Fielding2001-02-161-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88184 13f79535-47bb-0310-9956-ffa450edef68
* fix minor prototype inconsistencies noticed with C::ScanDoug MacEachern2001-02-041-7/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87970 13f79535-47bb-0310-9956-ffa450edef68
* get Apache building again after the change to make_exports.awkGreg Ames2001-01-311-1/+1
| | | | | | | | yeah, I know, this shouldn't be necessary. you're preaching to the choir. but this does the job until make_exports.awk gets slightly more robust. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87929 13f79535-47bb-0310-9956-ffa450edef68
* Normalize the use of AP_DECLARE_DATAWilliam A. Rowe Jr2001-01-191-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87733 13f79535-47bb-0310-9956-ffa450edef68
* The big change. This is part 3 of the apr-util symbols rename, pleaseWilliam A. Rowe Jr2001-01-191-1/+1
| | | | | | | | see the first commit of srclib/apr-util/include (cvs apr-util/include) for the quick glance at symbols changed. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87731 13f79535-47bb-0310-9956-ffa450edef68
* *) Compensate for recent changes in the APR headers. Specifically, someGreg Stein2000-11-261-2/+8
| | | | | | | | | | | | 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() git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87080 13f79535-47bb-0310-9956-ffa450edef68
* Next pass at the content-length filter. Not perfect quite yet, butRyan Bloom2000-11-221-1/+1
| | | | | | | | getting closer Submitted by: Greg Stein git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87058 13f79535-47bb-0310-9956-ffa450edef68