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
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
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
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
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
Greg Stein
d0968eb9af
add the "next filter" parameter to the rest of the ap_sub_req_* calls.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87076 13f79535-47bb-0310-9956-ffa450edef68
2000-11-23 13:03:46 +00:00
William A. Rowe Jr
25fca54294
Disable two features, with warnings, if a relatively Win32 SDK headers
...
are not available (e.g. stock distribution of MSVC 5.0).
Submitted by: Jeff Trawick
Reviewed by: Will Rowe
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87027 13f79535-47bb-0310-9956-ffa450edef68
2000-11-19 18:35:14 +00:00
William A. Rowe Jr
e6668f5a87
Change to buckets for isapi output. Still requires emulation of IO
...
Completion/Async behavior, but a non-async REQ_HSE_TRANSMIT_FILE is
now implemented.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86592 13f79535-47bb-0310-9956-ffa450edef68
2000-10-14 23:18:52 +00:00
William A. Rowe Jr
9dcd313a9f
Movin on over from 1.3.13-dev : this patch fixes the problem of nasty
...
popup windows alerting an Admin that the isapi isn't working, and
simplifies mod_isapi by relying on dso.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86447 13f79535-47bb-0310-9956-ffa450edef68
2000-10-08 06:00:26 +00:00
William A. Rowe Jr
b15f501b16
Roll forward fixes identified for 1.3.13-dev.
...
Note... this module still needs more control over async emulation, etc.
Submitted by: Jesse Pelton [jsp@PKC.com ]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86422 13f79535-47bb-0310-9956-ffa450edef68
2000-10-06 22:33:44 +00:00
William A. Rowe Jr
cbd58ab0bd
Here it is, the Win32 part of the big canonical errors patch.
...
The reason is really, really simple. If we ever choose to mix clib and
dos error codes, they criss-cross and don't line up, but they share the
same number space. As I wrote the new APR_IS_ERROR macros, I realized
we were about to shoot ourselves in the foot.
These changes nearly entirely affect Win32 only. The next big patch will
affect all of the rv == APR_ENOENT type problems throughout the system.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86416 13f79535-47bb-0310-9956-ffa450edef68
2000-10-06 17:24:43 +00:00
William A. Rowe Jr
134a70e4bd
Ok... I've been waiting to find out what happens when we commit to two
...
trees at once. To that end, this is the caching and rather stable 2.0
mod_isapi, with the docs brought over from 1.3 and freshened a bit.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86373 13f79535-47bb-0310-9956-ffa450edef68
2000-10-03 06:08:36 +00:00
William A. Rowe Jr
532f7b3f39
Whoops... that there was a handle I left hanging (and growing).
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86369 13f79535-47bb-0310-9956-ffa450edef68
2000-10-02 22:52:20 +00:00
William A. Rowe Jr
796d2a4d39
_not_ up to 100%, but some structural changes to make the rest easier.
...
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86366 13f79535-47bb-0310-9956-ffa450edef68
2000-10-02 22:29:18 +00:00
William A. Rowe Jr
0a4019faea
Just Typos.
...
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86361 13f79535-47bb-0310-9956-ffa450edef68
2000-10-02 15:49:41 +00:00
William A. Rowe Jr
e7cb8a652d
Forward port 1.3 overhaul of isapi to 2.0.
...
Yes - it's blatently obvious that this should be 'bucketized', but the
sequence I will follow is:
*) compatibility of sources
*) extension to async + transmitfile emulated support
*) localization of ISAPI* directives to Directory, File blocks
*) addition of ISAPI caching
*) recode for buckets.
I'm actually looking forward to the mod_cgi bucketization as a model.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86360 13f79535-47bb-0310-9956-ffa450edef68
2000-10-02 15:38:59 +00:00
Jeff Trawick
07789920fc
Get mod_isapi.c to compile with the level of Win32 headers which
...
ship with VC++ 5.0.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86200 13f79535-47bb-0310-9956-ffa450edef68
2000-09-11 19:02:40 +00:00
Bill Stoddard
cba8d8f05c
Fix win32 compile break.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86027 13f79535-47bb-0310-9956-ffa450edef68
2000-08-08 19:53:27 +00:00
William A. Rowe Jr
1a9db204f5
Remaining cleanup of ap_ -> apr_ and AP_ -> APR_ transformation...
...
see src/lib/apr/apr_compat.h for most details.
Also a few minor nits to get Win32 to build.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86008 13f79535-47bb-0310-9956-ffa450edef68
2000-08-06 06:07:53 +00:00
Doug MacEachern
059d8dd212
prefix libapr functions and types with apr_
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85976 13f79535-47bb-0310-9956-ffa450edef68
2000-08-02 05:27:38 +00:00
William A. Rowe Jr
d2c9dd85e3
Another day's progress... little changes, but just establishing the
...
baseline for fully implementing extensions. Filters... that's still
a little way away. This demonstrates the HSE_STATUS_PENDING result
wait event trap, so we let another thread keep working till we get
the HSE_REQ_DONE_WITH_SESSION request. Cleaned up callback names
and tossed bunches of stuff in the isapi_cid (connection/request) and
the isapi_loaded (dll details) for future caching optimizations.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85903 13f79535-47bb-0310-9956-ffa450edef68
2000-07-27 05:23:17 +00:00
William A. Rowe Jr
c50d07027c
Undo the damage to mod_isapi (leave placeholders for new functions though)
...
and add APR_EOL_STR to log files (precomiled, of course :)
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85881 13f79535-47bb-0310-9956-ffa450edef68
2000-07-25 03:26:31 +00:00
William A. Rowe Jr
fc3580dd3b
Missing apr_strings.h - hope this wasn't destined for some global header.
...
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85877 13f79535-47bb-0310-9956-ffa450edef68
2000-07-25 00:58:22 +00:00
Greg Stein
02a2200fd8
blast the old names for the status codes
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85686 13f79535-47bb-0310-9956-ffa450edef68
2000-06-24 17:34:11 +00:00
Bill Stoddard
29faf4133c
Fix Win32 compile break caused by Ryan's stat cleanup.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85544 13f79535-47bb-0310-9956-ffa450edef68
2000-06-12 18:07:31 +00:00
Doug MacEachern
2f45db7e82
back out APR_ prefix for TRUE,FALSE
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85081 13f79535-47bb-0310-9956-ffa450edef68
2000-04-28 18:27:55 +00:00
Doug MacEachern
f3a4cf49be
prefix TRUE,FALSE with APR_
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85074 13f79535-47bb-0310-9956-ffa450edef68
2000-04-28 06:49:53 +00:00
William A. Rowe Jr
f7900eb9cf
Replace ERROR constant with TODO_ERROR to flag these for review.
...
ERROR is a Windows.h constant of 0, or success, and is unrelated
to the error codes!
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85070 13f79535-47bb-0310-9956-ffa450edef68
2000-04-28 05:41:36 +00:00
Bill Stoddard
16e366cbfe
Win32: First cut at getting mod_isapi working under 2.0
...
Submitted by: William Rowe
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84976 13f79535-47bb-0310-9956-ffa450edef68
2000-04-15 19:23:08 +00:00