summaryrefslogtreecommitdiffstats
path: root/server (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Mr. Trawick was dead on, and this revealed a much bigger bug.William A. Rowe Jr2002-11-011-108/+117
| | | | | | | | | | | | Factor out the opts/override merging (since we do it three times) and eliminate all the nasty goto's. This bug likely caused all sorts of dir_walk configuration issues including htaccess issues. Also add a few more docs where things aren't so obvious. PR: 14147 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97380 13f79535-47bb-0310-9956-ffa450edef68
* Use APR_STATUS_IS_EOF rather than a check against APR_EOFJustin Erenkrantz2002-11-011-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97378 13f79535-47bb-0310-9956-ffa450edef68
* Style police were called back from their vacationJustin Erenkrantz2002-11-011-471/+497
| | | | | | | *No functional changes* git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97377 13f79535-47bb-0310-9956-ffa450edef68
* no such thing as AP_ASSERT()Jeff Trawick2002-11-011-1/+1
| | | | | | | there is ap_assert() and AP_DEBUG_ASSERT() git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97375 13f79535-47bb-0310-9956-ffa450edef68
* Fix a trailing slash/last filename truncation bug observed on Linux,William A. Rowe Jr2002-11-011-0/+2
| | | | | | | | | | | | | | which affected DAV MOVE operations and even general file access. PR 14147, 10687, 10236 [Dan Good <debug@gooddan.com>] I'm accepting Jeff Trawick's suggestion of twisting the test into an assert, since it seems very unlikely (after correctly resetting the flag) that this will fault. Reviewed by: Jeff Trawick, Will Rowe git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97366 13f79535-47bb-0310-9956-ffa450edef68
* when the connection drops, c->aborted is set but generallyJeff Trawick2002-10-311-1/+1
| | | | | | | | | | | ap_pass_brigade returns APR_SUCCESS content-length needs to be alert to c->aborted so that it doesn't keep trying to pass brigades down (otherwise, you get errors writing to the network over and over and over and ...) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97363 13f79535-47bb-0310-9956-ffa450edef68
* i hate it when tha happens..Ken Coar2002-10-251-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97303 13f79535-47bb-0310-9956-ffa450edef68
* more info is better than less..Ken Coar2002-10-251-0/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97302 13f79535-47bb-0310-9956-ffa450edef68
* Fix streaming output from an nph- CGI script. CGI:IRC nowJeff Trawick2002-10-251-1/+11
| | | | | | | | | | | | | | | works. core output filter needs to detect when no more data is available from a pipe for a while so that it can flush what is already there normally, content-length filter handles this but for nph- script we don't have content-length filter in place PR: 8482 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97301 13f79535-47bb-0310-9956-ffa450edef68
* mod_logio modification: count bytes-sent after the writev or sendfileBrian Pane2002-10-251-5/+29
| | | | | | | | | | | | | | | | | 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
* fix some problems in the perchild MPMJeff Trawick2002-10-251-18/+27
| | | | | | | | | | | | | apr_socket_t ptr filled in by apr_os_sock_put() needs to be NULL on entry to have a new structure allocated various iov problems were fixed Submitted by: Jonas Eriksson <jonas@webkonsulterna.com> Reviewed by: Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97299 13f79535-47bb-0310-9956-ffa450edef68
* fix "long lost child came home!" messages after a graceful restart withGreg Ames2002-10-231-1/+1
| | | | | | | | | | | | | | MaxClients (== ap_daemons_limit) lowered. This leaves junk at the end of the formerly used part of the scoreboard. If you then decide to raise MaxClients via graceful, the junk prevents those scoreboard slots from being used. This should not impact performance because find_child_by_pid stops its search when it sees a matching pid. If we don't have a match, something else is busted. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97287 13f79535-47bb-0310-9956-ffa450edef68
* don't use deprecated function apr_sort_hooks()Jeff Trawick2002-10-161-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97242 13f79535-47bb-0310-9956-ffa450edef68
* Fix -k restart feature on win32.William A. Rowe Jr2002-10-151-0/+1
| | | | | | | | PR: 12011 Submitted by: Juan Rivera <Juan.Rivera@citrix.com> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97216 13f79535-47bb-0310-9956-ffa450edef68
* Use a better name for the APR_SENDFILE_ENABLE flag.William A. Rowe Jr2002-10-141-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97211 13f79535-47bb-0310-9956-ffa450edef68
* Switched to the APR_STATUS_IS_XXX macrosBradley Nicholes2002-10-141-15/+16
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97207 13f79535-47bb-0310-9956-ffa450edef68
* Introduce an EnableSendfile directive (defaulted to ON) to allow usersWilliam A. Rowe Jr2002-10-141-24/+57
| | | | | | | | | | 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
* Fix for Sebastian's observation of my fat fingers.William A. Rowe Jr2002-10-141-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97203 13f79535-47bb-0310-9956-ffa450edef68
* Handle WSA_IO_PENDING as well.William A. Rowe Jr2002-10-141-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97200 13f79535-47bb-0310-9956-ffa450edef68
* A couple of observationsWilliam A. Rowe Jr2002-10-141-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97199 13f79535-47bb-0310-9956-ffa450edef68
* Bigger hack alert. Expand the range of unrecycled sockets to includeWilliam A. Rowe Jr2002-10-131-1/+2
| | | | | | | | WSAENOTSOCK for dealing with the AcceptEx failed bug reports. Experimental build to go out shortly. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97197 13f79535-47bb-0310-9956-ffa450edef68
* What once were macros no longer need line continuationWilliam A. Rowe Jr2002-10-131-7/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97192 13f79535-47bb-0310-9956-ffa450edef68
* Some errors are impossible to fathom, without the user knowing certainWilliam A. Rowe Jr2002-10-131-4/+23
| | | | | | | | | | | | | | | | | base numbers. This patch introduces "(EAP ##): Eap message" for the EAP errors, "(OS ##): Message" for modestly numbered os errors (under 100000) and hex "(OS 0x########): Message" for huge errors, which generally have bit-flag meanings and are usually represented in hex. This should make recognizing user bugreports a little less difficult. Would have done the same for other ranges, but they don't have (as) obvious numeric meanings on their own. Finally, we free up a buffer copy and give apr_strerror our string buffer to directly populate the message text. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97191 13f79535-47bb-0310-9956-ffa450edef68
* If the server is configured with an accept mutex type that isn't comaptibleRyan Bloom2002-10-111-0/+8
| | | | | | | | | with perchild, then force it to be FCNTL. PR: 13311 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97180 13f79535-47bb-0310-9956-ffa450edef68
* Fix a compile of compiler warnings. I don't know how these slipped past.Ryan Bloom2002-10-111-6/+2
| | | | | | | | | Also, uncomment a line of code that the last commit should have uncommented. Randall found this line and the fix, but I forgot to uncomment this line along with the fix. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97179 13f79535-47bb-0310-9956-ffa450edef68
* Fix receive_request, it was using the same location in the iovec for bothRyan Bloom2002-10-111-2/+2
| | | | | | | | | headers and body. Submitted by: Randall Stewart <randall@stewart.chicago.il.us> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97178 13f79535-47bb-0310-9956-ffa450edef68
* Fix recent exports.c breakage by referencing exports.c as being inJustin Erenkrantz2002-10-081-3/+3
| | | | | | | | | | | | | top_builddir rather than top_srcdir. For VPATH builds, we must treat exports.c as being in the build tree rather than in the source tree. Otherwise, it won't be regenerated properly. (FreeBSD's make does not require the explicit path, so I'm not sure why this change was made at all.) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97144 13f79535-47bb-0310-9956-ffa450edef68
* Add -S as a synonym for -t -DDUMP_VHOSTSAaron Bannert2002-10-071-2/+10
| | | | | | | | Submitted by: Thom May <thom@planetarytramp.net> Reviewed by: Aaron Bannert git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97120 13f79535-47bb-0310-9956-ffa450edef68
* Don't bother destroying the memory pools and buckets for each thread atBradley Nicholes2002-10-031-9/+11
| | | | | | | during shutdown since it will all be cleaned up at termination anyway. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97067 13f79535-47bb-0310-9956-ffa450edef68
* Add logic to the default_handler to enable script delivery to scriptGreg Stein2002-10-031-0/+25
| | | | | | | | | 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
* *) SECURITY: [CAN-2002-0840] HTML-escape the address produced byWilliam A. Rowe Jr2002-10-022-3/+7
| | | | | | | | | | | | | ap_server_signature() against this cross-site scripting vulnerability exposed by the directive 'UseCanonicalName Off'. Also HTML-escape the SERVER_NAME environment variable for CGI and SSI requests. It's safe to escape as only the '<', '>', and '&' characters are affected, which won't appear in a valid hostname. Reported by Matthew Murphy <mattmurphy@kc.rr.com>. [Brian Pane] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97064 13f79535-47bb-0310-9956-ffa450edef68
* Until we have a mechanism to allow PHP and others to 'raise their hand'William A. Rowe Jr2002-10-021-8/+0
| | | | | | | | and claim 'POST' we have to continue to accept POST in the default handler. Revert to rev 1.206 per Rbb's and wrowe's veto. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97063 13f79535-47bb-0310-9956-ffa450edef68
* Ensure that output already available is flushed to the networkJeff Trawick2002-10-021-0/+3
| | | | | | | | | when the content-length filter realizes that no new output will be available for a while. This helps some streaming CGIs as well as some other dynamically-generated content. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97054 13f79535-47bb-0310-9956-ffa450edef68
* Fix bug in the default handler. POST is not allowed on regular files.Greg Stein2002-10-011-0/+8
| | | | | | | | The resource must be handled by something *other* than the default handler. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97046 13f79535-47bb-0310-9956-ffa450edef68
* Call out the success cases when we don't get APR_SUCCESS back from theRyan Bloom2002-10-011-3/+2
| | | | | | | | | | | | | network write. All other status codes result in c->aborted being set, which allows the logs to note that the connection was aborted. Previous to this patch, if the network cable was unplugged on the client, the server would get APR_ETIMEUP, but we wouldn't note that the connection was aborted. Submitted by: Ryan Morgan <rmorgan@covalent.net> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97038 13f79535-47bb-0310-9956-ffa450edef68
* the recent change to fully-qualify exports.c to fix the build withJeff Trawick2002-09-271-1/+1
| | | | | | | | some BSD make broke the build for AIX make... fully-qualifying exports.c in LTLIBARY_SOURCES makes it build again git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96989 13f79535-47bb-0310-9956-ffa450edef68
* Full path required for BSD make (haven't I done this before???).Ben Laurie2002-09-261-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96985 13f79535-47bb-0310-9956-ffa450edef68
* Minor simplification... The can_send_content_length variable isGreg Stein2002-09-251-19/+13
| | | | | | | redundant with ctx->data_sent. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96971 13f79535-47bb-0310-9956-ffa450edef68
* Add ap_register_provider and ap_lookup_provider functions which resolveJustin Erenkrantz2002-09-202-1/+118
| | | | | | | | | | | | | | | | | the DSO link problems for DAV and the new aaa modules by moving the provider code into the core of the server and generalizing them to be used by any code. Remove the auth{nz}_*_provider functions as they are no longer needed. Change the dav_*_provider functions to wrap the ap_*_provider functions as they have a bit more of a historical precedent that we should keep around. Reviewed by: John K. Sterling <john@sterls.com> (in concept) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96919 13f79535-47bb-0310-9956-ffa450edef68
* The protocol version (eg: HTTP/1.1) in the request line parsingJim Jagielski2002-09-171-2/+4
| | | | | | | | | | | | | | is now case insensitive. Before, 'http/1.1' would silently be forced to HTTP/1.0 PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96857 13f79535-47bb-0310-9956-ffa450edef68
* zap a gcc warning about using an uninitialized variable (new) andJeff Trawick2002-09-161-3/+8
| | | | | | | check for a possible syntax error git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96836 13f79535-47bb-0310-9956-ffa450edef68
* Modify ap_open_logs (an internal function) to follow the hook open_logsWilliam A. Rowe Jr2002-09-162-17/+19
| | | | | | | | | argument schema so it can be directly invoked by the hook handler. Also clean up the open_logs processing to return an error rather than simply exit()ing. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96829 13f79535-47bb-0310-9956-ffa450edef68
* We log this failure (with an identical message) in the restart loop code,William A. Rowe Jr2002-09-151-5/+3
| | | | | | | there's no reason not to note it in the preflight pass. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96827 13f79535-47bb-0310-9956-ffa450edef68
* Allow AddOutputFilterByType to take in multiple filters.Justin Erenkrantz2002-09-151-5/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96819 13f79535-47bb-0310-9956-ffa450edef68
* Add support for using fnmatch patterns in the final path segment of anIan Holsman2002-09-121-14/+39
| | | | | | | | | | | Include statement (eg.. include /foo/bar/*.conf). and remove the noise on stderr during config dir processing. Submitted by: Joe Orton <jorton@redhat.com> Reviewed by: Ian Holsman, Brian Pane git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96776 13f79535-47bb-0310-9956-ffa450edef68
* Fix memory leak in core_output_filter.Justin Erenkrantz2002-09-101-1/+1
| | | | | | | This would result in at least two EOS buckets being leaked per connection. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96752 13f79535-47bb-0310-9956-ffa450edef68
* Allow for compile on systems lacking poll.hJim Jagielski2002-09-081-1/+7
| | | | | | | | | | PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96714 13f79535-47bb-0310-9956-ffa450edef68
* Removed comments inherited from worker that don't applyBrian Pane2002-09-061-7/+0
| | | | | | | to leader/follower git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96671 13f79535-47bb-0310-9956-ffa450edef68
* Morph DONE result from a sub-request handler to OK as DONE is only relevantJustin Erenkrantz2002-09-051-0/+3
| | | | | | | | | | | when we are the main request. This fixes a problem with mod_include printing out an error message on DAV sub-requests because mod_dav will return DONE instead of OK. This would result in the correct output merged in with an error string. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96642 13f79535-47bb-0310-9956-ffa450edef68
* Rearranged the loop in fix_hostname() to run faster in theBrian Pane2002-09-021-4/+7
| | | | | | | | common case in which lowercase characters are the most frequent characters in the hostname git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96616 13f79535-47bb-0310-9956-ffa450edef68