summaryrefslogtreecommitdiff
path: root/modules/http
Commit message (Collapse)AuthorAgeFilesLines
* Morph the ap_http_broken_backend_filter() proxy "specific"Jim Jagielski2005-12-203-17/+21
| | | | | | | filter to a generic http error handling output filter. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@358022 13f79535-47bb-0310-9956-ffa450edef68
* * Move code for broken backend detection out of core filter into a new httpRuediger Pluem2005-12-183-0/+33
| | | | | | | | protocol filter (ap_http_broken_backend_filter) that is only run in the proxy case. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@357519 13f79535-47bb-0310-9956-ffa450edef68
* * If the mod_proxy backend connection broke in the middle of the response,Ruediger Pluem2005-12-181-2/+16
| | | | | | | | | | | | | | | | | | | | | then - Do not cache it. - Signal the client that something went wrong by closing the connection and not sending the last-chunk marker if the response was T-E chunked. server/core_filters.c : Close the connection to the client by setting c->keepalive to AP_CONN_CLOSE. modules/http/chunk_filter.c : Do not send last-chunk marker in the case the backend broke. modules/proxy/mod_proxy_http.c: Signal that the backend connection broke. modules/cache/mod_disk_cache.c: Respect r->no_cache for discarding the response Submitted by: Roy T. Fielding, Jim Jagielski, Ruediger Pluem Reviewed by: Roy T. Fielding, Jim Jagielski, Ruediger Pluem git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@357461 13f79535-47bb-0310-9956-ffa450edef68
* * Fix ap_http_chunk_filter to create correct chunks in the case that aRuediger Pluem2005-12-171-0/+2
| | | | | | | | | | flush bucket is pre- and postfixed by data buckets in the brigade. Submitted by: Ruediger Pluem Reviewed by: Justin Erenkrantz, Joe Orton, Jim Jagielski git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@357328 13f79535-47bb-0310-9956-ffa450edef68
* If a connection aborts while waiting for a chunked line, flag the connection asJustin Erenkrantz2005-12-071-5/+17
| | | | | | | errored out and send errors upwards. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@354630 13f79535-47bb-0310-9956-ffa450edef68
* PR 36090Nick Kew2005-12-051-0/+1
| | | | | | | Fix recursive ErrorDocument handling git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@354118 13f79535-47bb-0310-9956-ffa450edef68
* No functional change: remove "internal" tab spacing/formatting.Jim Jagielski2005-11-163-9/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@345053 13f79535-47bb-0310-9956-ffa450edef68
* No functional change: more indenting/formatting changes due toJim Jagielski2005-11-101-1/+1
| | | | | | | tabbing git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@332316 13f79535-47bb-0310-9956-ffa450edef68
* No functional Change: Removing trailing whitespace. This alsoJim Jagielski2005-11-108-106/+106
| | | | | | | | means that "blank" lines consisting of just spaces or tabs are now really blank lines git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@332306 13f79535-47bb-0310-9956-ffa450edef68
* No functional change: simple detabbing of indented code.Jim Jagielski2005-11-102-8/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@332305 13f79535-47bb-0310-9956-ffa450edef68
* Moved the extended_status scoreboard update from ap_process_http_connectionBrian Pane2005-10-301-8/+18
| | | | | | | | to the EOR bucket destructor. Also, added some defensive code and comments regarding r->pool lifetime to ap_process_http_connection. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@329664 13f79535-47bb-0310-9956-ffa450edef68
* Allocate the brigade containing the EOR bucket from the connectionBrian Pane2005-10-291-1/+1
| | | | | | | | | | | pool, rather than the request pool, because the core output filter may need to reference the brigade immediately after deleting the EOR bucket (and thus the request pool). This fixes a coredump encountered when running t/TEST on an httpd compiled with "--enable-pool-debug." git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@329484 13f79535-47bb-0310-9956-ffa450edef68
* Async write completion for Event MPMBrian Pane2005-10-242-42/+29
| | | | | | | (backported from async-dev branch to 2.3 trunk) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@327945 13f79535-47bb-0310-9956-ffa450edef68
* Redesign of request cleanup and logging to use End-Of-Request bucketBrian Pane2005-10-242-20/+27
| | | | | | | (backport from async-dev branch to 2.3 trunk) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@327925 13f79535-47bb-0310-9956-ffa450edef68
* Add new connection states for handler and write completionBrian Pane2005-10-231-5/+10
| | | | | | | (backport from async-dev branch to 2.3 trunk) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@327870 13f79535-47bb-0310-9956-ffa450edef68
* * modules/http/http_request.cAndré Malo2005-10-151-0/+1
| | | | | | | (ap_allow_methods): add missing va_end call git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@321500 13f79535-47bb-0310-9956-ffa450edef68
* NET_TIME, as a standalone feature, was a horrid idea.William A. Rowe Jr2005-10-061-1/+3
| | | | | | | | | | | | | | | | | | | The core filter will NOT operate correctly across platforms (even between Linux/Solaris) without setting up the conn->timeout, so always apply the timeout when establishing the core filter. The keep-alive-timeout is entirely an HTTP-ism, and needs to move to the http protocol handler. Note #1; this isn't triggered in the event mpm, but the event mpm introspects s->keep_alive_timeout directly adding it to the pollset, so this is a non-sequitor. Finally, once the headers are read, the named virtual host may have a different (more/less permissive) timeout for the remainder of the request body. This http-centric patch picks up that subtle detail and can switch to a named-vhost timeout. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@306495 13f79535-47bb-0310-9956-ffa450edef68
* Spare us a wasted variable, csd is initialized null, actingWilliam A. Rowe Jr2005-10-061-3/+1
| | | | | | | as the 'csd_set' indicator. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@300198 13f79535-47bb-0310-9956-ffa450edef68
* Doxygen fixup / cleanupIan Holsman2005-08-281-4/+11
| | | | | | | | | submited by: Neale Ranns neale ranns.org reviewed by: Ian Holsman git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@263931 13f79535-47bb-0310-9956-ffa450edef68
* * modules/http/byterange_filter.c (ap_byterange_filter): Update someJoe Orton2005-08-091-9/+7
| | | | | | | comments. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@231030 13f79535-47bb-0310-9956-ffa450edef68
* * modules/http/http_filters.c (ap_send_http_trace): Silence gccJoe Orton2005-07-191-2/+2
| | | | | | | variable-may-be-used-uninitialized warnings. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@219696 13f79535-47bb-0310-9956-ffa450edef68
* Plug AllowTrace extended|on|off into proxy and http core.William A. Rowe Jr2005-07-012-9/+85
| | | | | | | | | | It still is not 'correct' until REQUEST_CHUNKED_PASS is reimplemented and passes some chunk headers, since we aren't echoing the entire request. But it gets me further on testing 1.3 -> 2.0 -> 2.1 -> 2.0 -> 1.3 proxy behaviors. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@208787 13f79535-47bb-0310-9956-ffa450edef68
* * modules/http/byterange_filter.c (ap_byterange_filter): No functionalJoe Orton2005-06-081-33/+32
| | | | | | | changes: reflow/reformat after r188797. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@189559 13f79535-47bb-0310-9956-ffa450edef68
* * modules/http/byterange_filter.c (ap_byterange_filter): Refuse toJoe Orton2005-06-071-27/+21
| | | | | | | | | | | | | | byterange any response which may require the consumption of arbitrary amounts of memory. (functional changes split from whitespace/reflow changes which will follow in a separate commit) Reviewed by: jerenkrantz (several moons ago) PR: 29962 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@188797 13f79535-47bb-0310-9956-ffa450edef68
* EBCDIC: Handle chunked input from client or, with proxy, originJeff Trawick2005-05-241-0/+2
| | | | | | | server. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@178262 13f79535-47bb-0310-9956-ffa450edef68
* Support the suppress-error-charset setting, as with Apache 1.3.x.Jeff Trawick2005-05-161-1/+13
| | | | | | | | | | | | | | With Apache 1.3.x, it is a bit simpler as the request does not go through ap_make_content_type(). Modules can set custom error responses but not be able to set the charset, so they have to code the charset in the html. Thus, it is useful to preserve 1.3.x behavior exactly. PR: 26467 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@170354 13f79535-47bb-0310-9956-ffa450edef68
* Reintroduce stack frame construction with /Oy- (removal was implied by /O2).William A. Rowe Jr2005-05-151-1/+1
| | | | | | | | | This makes binaries far easier to debug, during operation and for post-crash .dmp analysis. Do not alter /Gs optimizations per brane. Reviewed by: stoddard, brane git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@170253 13f79535-47bb-0310-9956-ffa450edef68
* Remove ap_method_list_do and ap_method_list_vdo as previously mentioned ↵Paul Querna2005-04-251-24/+0
| | | | | | dev@httpd. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@164536 13f79535-47bb-0310-9956-ffa450edef68
* update comments for *_client_block functions. Greg Ames2005-03-231-7/+5
| | | | | | | | | note namespace protected function names. clarify where 100 Continue is sent. remove dire warning for calling ap_should_client_block more than once since side effects appear to be long gone. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@158791 13f79535-47bb-0310-9956-ffa450edef68
* More tweaks primarily driven by caching.Sander Striker2005-02-101-16/+22
| | | | | | | | | | * modules/http/http_protocol.c (ap_meets_conditions): Allow If-None-Modified and If-Modified-Since to interact as described in RFC2616, sections 14.26 and 13.3.4. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@153270 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright year to 2005 and standardize on current copyright owner line.Justin Erenkrantz2005-02-049-9/+18
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@151408 13f79535-47bb-0310-9956-ffa450edef68
* Keep track of time taken to process requests again.Jim Jagielski2005-02-021-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@149550 13f79535-47bb-0310-9956-ffa450edef68
* FINALLY Correct ap_http_method()! It is NOT a method, it's a SCHEME!William A. Rowe Jr2005-01-021-2/+2
| | | | | | | | | | Bumped mmn, and ap module cookie, for this function rename. It's not a deprecation, as ap_http_method would be a lovely function name sometime in the future: to determine what the function name implies. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@123882 13f79535-47bb-0310-9956-ffa450edef68
* * Style fixes only. No functional changes. Remove two tabs. Fix an If. Split ↵Paul Querna2004-12-131-9/+14
| | | | | | a String. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@111719 13f79535-47bb-0310-9956-ffa450edef68
* undo changes made in 111386 due to vetoGeoffrey Young2004-12-091-22/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@111432 13f79535-47bb-0310-9956-ffa450edef68
* add response code 226 constant (HTTP_IM_USED) and statusGeoffrey Young2004-12-091-3/+22
| | | | | | | line ("226 IM Used"). PR 31128. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@111386 13f79535-47bb-0310-9956-ffa450edef68
* * modules/http/mod_core.h: Prototype ap_http_chunk_filter.Joe Orton2004-12-023-133/+5
| | | | | | | | | | | * modules/http/chunk_filter.c (ap_http_chunk_filter): Rename from chunk_filter. * modules/http/http_core.c (chunk_filter): Remove the original copy. (register_hooks): Register ap_http_chunk_filter. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@109497 13f79535-47bb-0310-9956-ffa450edef68
* Initial pass at refactoring some files to eliminate our 150K C source behemoths.Justin Erenkrantz2004-11-276-1716/+2023
| | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in: Change order of dependencies to bring in exports.o first so that we have every symbol 'used' before the linker starts processing. * build/rules.mk.in: Add a 'program-install' target which just copies httpd. * server/Makefile.in, modules/http/config2.m4: Add in new file targets. * NWGNUmakefile, libhttpd.dsp: Blind updates for Netware and Win32. (I tried.) * server/core.c: Move core_input_filter, net_time_filter, and core_output_filter and all supporting functions to... * server/core_filters.c (copied): ...here. * modules/http/http_protocol.c: Move functions from here to there...namely: * modules/http/byterange_filter.c (copied): Relocate ap_byterange_filter() and friends. * modules/http/chunk_filter.c (copied): Relocate chunk_filter(). * modules/http/http_etag.c (copied): Relocate ap_set_etag and ap_make_etag(). * modules/http/http_filters.c (copied): Relocate ap_http_filter(), ap_http_header_filter(), ap_discard_request_body(), ap_setup_client_block(), ap_should_client_block(), and ap_get_client_block(). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@106692 13f79535-47bb-0310-9956-ffa450edef68
* ap_process_http_async_connection (used by the Event MPM):Greg Ames2004-11-261-21/+18
| | | | | | | | | | | | | fix CLOSE_WAITs/leaked connections. The logic to deal with ap_read_request failures got lost when merging in the HTTP pipelining fix. If ap_read_request fails, the connection state should get set to CONN_STATE_LINGER so the MPM will invoke lingering close. Test case: client sends a Connection: keepalive header then closes the connection before the keepalive timeout pops. Also add a comment to make the pipelining flow more obvious. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@106662 13f79535-47bb-0310-9956-ffa450edef68
* Compile Fix for Netware Port with CodeWarrior.Paul Querna2004-11-211-2/+4
| | | | | | | Noticed By: <normw@bocnet.com.au> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@106072 13f79535-47bb-0310-9956-ffa450edef68
* The Event MPM.Paul Querna2004-11-202-3/+70
| | | | | | | | | | | | | | | | | | | | Designed to minimize Apache's KeepAlive overhead. This MPM depends on the current APR-trunk for new features added to the apr_pollset interface. Currently the underlying operating system must support KQueue or EPoll. Status: Should work as a drop in replacement for all non-ssl servers. SSL Requests that use HTTP 1.1 Pipelining do not currently work. Testing: I have tested it with Linux 2.6, FreeBSD 5.2.1, and OS X 10.3. Originally based on the patch by Greg Ames. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105919 13f79535-47bb-0310-9956-ffa450edef68
* Remove the .cvsignore files.Joe Orton2004-11-191-20/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105796 13f79535-47bb-0310-9956-ffa450edef68
* veto and revert win64 patch: 64bit changes must percolate from theRoy T. Fielding2004-10-231-2/+2
| | | | | | | | | bottom (APR/system) up -- we can't give the client a 64bit API and then cast it to 32bits internally without introducing security holes on other platforms. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105572 13f79535-47bb-0310-9956-ffa450edef68
* WIN64: API changes to clean up Windows 64bit compile warningsAllan K. Edwards2004-10-221-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105545 13f79535-47bb-0310-9956-ffa450edef68
* * modules/http/http_protocol.c (ap_http_filter): Always fail if theJoe Orton2004-09-291-1/+1
| | | | | | | | Content-Length header is an empty string; previously this was only an error with some strto* implementations. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105341 13f79535-47bb-0310-9956-ffa450edef68
* use HTML 2.0 <hr>André Malo2004-09-151-1/+1
| | | | | | | PR: 30732 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105162 13f79535-47bb-0310-9956-ffa450edef68
* Fix Bug 18388 (Set-Cookie in 304)Nick Kew2004-09-011-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104924 13f79535-47bb-0310-9956-ffa450edef68
* * modules/http/http_request.c (ap_internal_redirect): Call quick_handlerJustin Erenkrantz2004-08-021-5/+7
| | | | | | | | | | when we do an internal redirect to allow caching. This allows mod_dir requests to be cached. Reviewed by: Bill Stoddard git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104446 13f79535-47bb-0310-9956-ffa450edef68
* parse byteranges correctly using the new apr_strtoff functionAndré Malo2004-05-251-5/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103765 13f79535-47bb-0310-9956-ffa450edef68
* * modules/http/http_protocol.c (ap_setup_client_block,Joe Orton2004-05-251-23/+10
| | | | | | | | | | | ap_http_filter): Use new apr_strtoff() to support request bodies as large as apr_off_t allows (rather than as large as 'long' allows), and simplify error handling. PR: 27866 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103756 13f79535-47bb-0310-9956-ffa450edef68