Cliff Woolley
3e2ce19baf
BUCKET FREELISTS
...
Add an allocator-passing mechanism throughout the bucket brigades API.
From Apache's standpoint, the apr_bucket_alloc_t* used throughout a given
connection is stored in the conn_rec by the create_connection hook. That
means it's the MPM's job to optimize recycling of apr_bucket_alloc_t's --
the MPM must ensure that no two threads can ever use the same one at the
same time, for instance.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94304 13f79535-47bb-0310-9956-ffa450edef68
2002-03-29 08:17:26 +00:00
William A. Rowe Jr
65a37752ec
Eliminate potential ap_server_root_relative segfaults, with the input
...
of Jeff Trawick's style changes to the first patches. Doesn't include
the fixes to ssl [more complex], and we won't trap errors that involve
ap_serverroot, since we presume that was normalized on the way in.
Therefore, testing ap_server_root_relative(DEFAULT_FOO) cases
should never become necessary.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93965 13f79535-47bb-0310-9956-ffa450edef68
2002-03-16 18:26:58 +00:00
William A. Rowe Jr
06429468f2
Style touchup
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93958 13f79535-47bb-0310-9956-ffa450edef68
2002-03-15 16:58:27 +00:00
William A. Rowe Jr
07a0a459f4
Another potential ap_server_root_relative failure.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93957 13f79535-47bb-0310-9956-ffa450edef68
2002-03-15 16:57:08 +00:00
Bradley Nicholes
4fccbc6459
Switched to the new winsock header for NetWare
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93935 13f79535-47bb-0310-9956-ffa450edef68
2002-03-14 16:48:58 +00:00
Roy T. Fielding
845cbfd508
Update our copyright for this year.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93918 13f79535-47bb-0310-9956-ffa450edef68
2002-03-13 20:48:07 +00:00
Bradley Nicholes
47551c2c45
NetWare .def files for the DAV modules
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93770 13f79535-47bb-0310-9956-ffa450edef68
2002-03-07 18:14:03 +00:00
Aaron Bannert
d5fdaf9cfd
The pre_config hook now takes a return value. This allows modules to
...
cause the server to bail out under error conditions.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93063 13f79535-47bb-0310-9956-ffa450edef68
2002-01-28 23:49:40 +00:00
William A. Rowe Jr
f3f28ebf16
Shush
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92902 13f79535-47bb-0310-9956-ffa450edef68
2002-01-18 04:53:09 +00:00
Bradley Nicholes
030625aa1d
Added the NetWare def files for mod_cache and mod_mem_cache
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92834 13f79535-47bb-0310-9956-ffa450edef68
2002-01-11 23:39:22 +00:00
William A. Rowe Jr
30d1548be6
Fix a handful of AP_MODULE_DECLARE_DATA exports for .so modules.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92805 13f79535-47bb-0310-9956-ffa450edef68
2002-01-10 09:11:33 +00:00
William A. Rowe Jr
aff1454d34
*) Split all Win32 modules [excluding the core components mod_core,
...
mod_so, mod_win32 and the winnt mpm] into individual loadable
modules, so the administrator may individually disable the former
compiled-in modules by simply commenting out their LoadModule
directives. [William Rowe]
*) Saved Win32 module authors and porters many future headaches, by
duplicating the appropriate .h files such as os.h into the include
directory, including in the build tree. [William Rowe]
Also noticed that version stamp resources weren't generated for proxy
modules, this too is now fixed.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92804 13f79535-47bb-0310-9956-ffa450edef68
2002-01-10 08:47:23 +00:00
Ryan Bloom
a14a4f5b66
Add the ability to pass flags to both apr_file_open and apr_mktemp.
...
The reason for this, is that it is very possible to want a temp
file that isn't deleted when the file is closed. It also makes sense
to have the flags in the apr_file_t if possible.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92766 13f79535-47bb-0310-9956-ffa450edef68
2002-01-08 06:26:10 +00:00
Bill Stoddard
eb229035d2
Win32: Fix bug that could cause CGI scripts with QUERY_STRINGS
...
to fail.
Gotta allocate enough space for that NULL string terminator :-)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92522 13f79535-47bb-0310-9956-ffa450edef68
2001-12-18 21:56:16 +00:00
William A. Rowe Jr
67c3d93b2c
Apply the converse of the AcceptPathInfo patch for isapi's/cgi's.
...
The default behavior remains, accept PATH_INFO, but it may be expressly
revoked with AcceptPathInfo Off
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92452 13f79535-47bb-0310-9956-ffa450edef68
2001-12-13 17:22:20 +00:00
William A. Rowe Jr
4dbe79c5f6
Resolved segfault in mod_isapi when configuring with ISAPICacheFile.
...
PR: 8563, 8919
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92301 13f79535-47bb-0310-9956-ffa450edef68
2001-12-03 19:46:32 +00:00
Ian Holsman
b4b99c040c
change so that it doesn't rely on the structure of the apr_table's elt internal
...
structure
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92178 13f79535-47bb-0310-9956-ffa450edef68
2001-11-26 16:27:01 +00:00
Ryan Bloom
e674055ddb
Fix the cmd command for mod_include. When we are processing
...
a cmd command, we do not want to use the r->filename to set
the command name. The command comes from the SSI tag. To do this,
I added a variable to the function that builds the command line
in mod_cgi. This allows the include_cmd function to specify
the command line itself.
PR: 8772
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92150 13f79535-47bb-0310-9956-ffa450edef68
2001-11-24 00:17:01 +00:00
Ian Holsman
86b792b21c
Modify post_config hook so that it can return a error,
...
causing the server not to start.
previous method was to call exit(1) which would not fail
gracefully
PR:
Obtained from:
Submitted by:
Reviewed by: (Idea only Jeff Trawick)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92144 13f79535-47bb-0310-9956-ffa450edef68
2001-11-23 16:35:22 +00:00
Bradley Nicholes
520d1501f8
Missing a header
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91949 13f79535-47bb-0310-9956-ffa450edef68
2001-11-14 18:24:22 +00:00
Bradley Nicholes
1a14c64eb3
Module that takes advantage of the built-in SSL functionality on the
...
NetWare OS
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91904 13f79535-47bb-0310-9956-ffa450edef68
2001-11-13 17:37:27 +00:00
Ian Holsman
eea38d7c2e
This patch changes the apr_table_elts macro so that it provides
...
access to the internals of an apr_table_t via a const pointer
instead of the current non-const pointer.
Submitted by: Brian Pane <BPane@pacbell.net >
Reviewed by: Ian Holsman
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91860 13f79535-47bb-0310-9956-ffa450edef68
2001-11-11 22:31:04 +00:00
Bradley Nicholes
af2d217c32
Added the .def files for building the external modules for NetWare. Also
...
added the NLM startup code for NLMs that require Winsock support.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91729 13f79535-47bb-0310-9956-ffa450edef68
2001-11-02 17:59:58 +00:00
Ken Coar
27b2ce41dc
Style-guide compliance changes only, no functional differences.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91619 13f79535-47bb-0310-9956-ffa450edef68
2001-10-21 15:57:59 +00:00
William A. Rowe Jr
e559cd2c2e
Grab this pointer, before it goes NULL
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91618 13f79535-47bb-0310-9956-ffa450edef68
2001-10-21 06:37:25 +00:00
William A. Rowe Jr
f16b954906
For Win32 cgi %1 arguments, use backslashes. For $1, use posix slashes.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91617 13f79535-47bb-0310-9956-ffa450edef68
2001-10-21 06:32:47 +00:00
William A. Rowe Jr
cbf8c19978
On second thought, we like our dot, alot.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91616 13f79535-47bb-0310-9956-ffa450edef68
2001-10-21 05:59:10 +00:00
William A. Rowe Jr
b2d2222423
Round out const'ness
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91615 13f79535-47bb-0310-9956-ffa450edef68
2001-10-21 04:18:15 +00:00
William A. Rowe Jr
04f4abf8c3
First Patch! [Well, my own typo.]
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91614 13f79535-47bb-0310-9956-ffa450edef68
2001-10-21 04:17:42 +00:00
William A. Rowe Jr
0a9f874084
Reimplement Win32 registry-based and shebang-extended scripting.
...
Accepts arguments of $* and %* for 'positioned' cgi envvars, provided they
stand alone (aren't part of another arg.)
Accepts %1 $1 syntax, quoted or not, but makes no attempt at palacating
older programs with short paths, just yet.
About as stable and robust as my first rewrite of dir_walk, so watch out!
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91613 13f79535-47bb-0310-9956-ffa450edef68
2001-10-21 04:14:24 +00:00
William A. Rowe Jr
9444ee9bc3
There is no errno using apr. A quick grep reveals a dozen or so files
...
with serious errno problems, particularly in mod_dav :(
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90975 13f79535-47bb-0310-9956-ffa450edef68
2001-09-10 03:51:28 +00:00
William A. Rowe Jr
b1c92cdceb
We already extract e for subprocess_env, and set SECURE_SERVER_PORT
...
for real.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90589 13f79535-47bb-0310-9956-ffa450edef68
2001-08-23 21:17:38 +00:00
William A. Rowe Jr
69cc655706
ap_server_root_relative will take care of this canonical_file call.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90565 13f79535-47bb-0310-9956-ffa450edef68
2001-08-23 18:57:08 +00:00
Jeff Trawick
c216c2184a
fix some homophonic issues in comments, as well as some
...
mispelings found near "its" or "it's"
(helping our 4th grader with homework, couldn't help but
grep)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90173 13f79535-47bb-0310-9956-ffa450edef68
2001-08-15 21:11:59 +00:00
William A. Rowe Jr
0c32d662bf
Flush the off_t compiler emits from mod_isapi
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89729 13f79535-47bb-0310-9956-ffa450edef68
2001-07-26 16:27:42 +00:00
William A. Rowe Jr
743342d8e7
Some odd XXX fixups that are closed (or unneeded)
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89665 13f79535-47bb-0310-9956-ffa450edef68
2001-07-23 19:33:03 +00:00
Cliff Woolley
29212e8c6b
*) Account for the new pool parameter to apr_bucket_file_create()
...
and apr_bucket_file_make().
*) Simplify mod_file_cache's sendfile_handler by taking advantage
the new ability of file buckets to handle files opened in XTHREAD
mode. [Also inlined some of the brigade construction stuff in
mod_file_cache's handlers to save a palloc() or two.]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89438 13f79535-47bb-0310-9956-ffa450edef68
2001-06-27 20:18:09 +00:00
William A. Rowe Jr
fbb6f73fc3
We don't want these operations to end the stream, simply flush out
...
the contents. It's up to any downstream filters to collect c-l or
other stats when the handler has exited.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89156 13f79535-47bb-0310-9956-ffa450edef68
2001-05-18 17:26:22 +00:00
William A. Rowe Jr
40fb8176e6
Interesting, ISAPI thinks a 0 result is cool. Already patched in 1.3.20.
...
[Jessie Oberreuter <joberreu@moselle.com >]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89154 13f79535-47bb-0310-9956-ffa450edef68
2001-05-18 16:12:06 +00:00
William A. Rowe Jr
afec1645f6
Damnable casts
...
Submitted by: Jessie Oberreuter <jessieo@westside.com >
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88980 13f79535-47bb-0310-9956-ffa450edef68
2001-05-03 04:15:21 +00:00
William A. Rowe Jr
badfcd1c8c
Hmmm... missed one. There has to be a better home for this.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88391 13f79535-47bb-0310-9956-ffa450edef68
2001-02-28 15:31:29 +00:00
Bill Stoddard
dc43b4e920
Fix Windows compile breaks caused by mod_core.h foobar
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88371 13f79535-47bb-0310-9956-ffa450edef68
2001-02-27 18:58:59 +00:00
Roy T. Fielding
381f88d56a
Update copyright to 2001
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88184 13f79535-47bb-0310-9956-ffa450edef68
2001-02-16 04:26:53 +00:00
Doug MacEachern
88d3406f9a
renaming various functions for consistency sake
...
see: http://apr.apache.org/~dougm/apr_rename.pl
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88019 13f79535-47bb-0310-9956-ffa450edef68
2001-02-08 07:45:33 +00:00
William A. Rowe Jr
7f4a5fe7f5
Use the appropriate APR_FINFO_flags for the apr_stat/lstat/getfileinfo
...
calls to avoid ownership and permissions on Win32 when they are not
required, and until they are implemented.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87873 13f79535-47bb-0310-9956-ffa450edef68
2001-01-27 21:28:28 +00:00
William A. Rowe Jr
cd1ef027c2
The changes required for the APR_FINFO_wanted argument to
...
apr_stat/lstat/getfileinfo. These are -NOT- optimal, they
are simply the required changes to get the server working.
The size of the patch is a warning about how we need to
really look at what we are trying to accomplish with all
of these stat/lstat calls.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87760 13f79535-47bb-0310-9956-ffa450edef68
2001-01-20 21:42:23 +00:00
William A. Rowe Jr
59bbd68bec
The big change. This is part 3 of the apr-util symbols rename, please
...
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
2001-01-19 07:04:36 +00:00
William A. Rowe Jr
7c8a252a45
Some missing exports
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87725 13f79535-47bb-0310-9956-ffa450edef68
2001-01-18 23:52:03 +00:00
Doug MacEachern
40391fb9f2
adjust remaining modules to use the new handler hook method (Alan Edwards)
...
bring back the old handler prototype by reusing r->handler (dougm)
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87617 13f79535-47bb-0310-9956-ffa450edef68
2001-01-08 23:55:12 +00:00
William A. Rowe Jr
7cf10a490d
Fix uninitialized badness
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87132 13f79535-47bb-0310-9956-ffa450edef68
2000-11-29 18:50:12 +00:00