1715880355ef7f574cae2e8f973411b51acedede 1665625 |
|
10-Mar-2015 |
ylavic |
core, modules: like r1657897 but for core and other modules than mod_proxy.
More uses of ap_map_http_request_error() and AP_FILTER_ERROR so that we never
return an HTTP error status from a handler if some filter generated a response
already.
That is, from a handler, either ap_get_brigade() (an input filter) returned
AP_FILTER_ERROR and we must forward it to ap_die(), or ap_pass_brigade() (an
output filter) failed with any status and we must return AP_FILTER_ERROR in
any case for ap_die() to determine whether a response is needed or not. |
3094511c89559f44e9eadce0289bbcb79c246f99 1626978 |
|
23-Sep-2014 |
jkaluza |
mod_cgi: log cgi script stderr to ScriptLog, use APLOGNO for log_scripterror
errors. |
7619b51fca6ecf16c28389e52a666e82f3c8d3ef 1601624 |
|
10-Jun-2014 |
ylavic |
Strip useless apr_brigade_cleanup() calls. |
a511a29faf2ff7ead3b67680154a624effb31aaf 1482522 |
|
14-May-2013 |
minfrin |
core: Stop the HTTP_IN filter from attempting to write error buckets
to the output filters, which is bogus in the proxy case. Create a
clean mapping from APR codes to HTTP status codes, and use it where
needed. |
dfa7a2996e64469379184e08a1246557ddeb2783 1463056 |
|
31-Mar-2013 |
sf |
Use %pm available since apr 1.3 instead of an extra call to apr_strerror |
4fe989dafa8c70f0c8a678189016a9689dde4451 1407965 |
|
11-Nov-2012 |
jailletc36 |
Replace an incorrect #if by the correct corresponding #if defined(...)
PR 54133 reported by Teodor Milkov () |
9b3073cc691d1b5a38a4068d8dfe69f81335cf6d 1361803 |
|
15-Jul-2012 |
sf |
Code clean up (remove useless memory allocation)
Submitted by: Christophe JAILLET <christophe jaillet wanadoo fr>
PR: 52648 |
185aa71728867671e105178b4c66fbc22b65ae26 1209766 |
|
03-Dec-2011 |
sf |
Add lots of unique tags to error log messages |
678a15e91d6a44569c956445442731bb64a98a63 1208110 |
|
29-Nov-2011 |
sf |
Remove more log message prefixes that are now redundant as the
the error log format includes the module name. |
11e076839c8d5a82d55e710194d0daac51390dbd 1174929 |
|
23-Sep-2011 |
sf |
More cleanup: Expand tabs and some more indentation fixes
No functional change |
5bfaaf573bacb45c1cf290ce85ecc676587e8a64 1174751 |
|
23-Sep-2011 |
jim |
Cleanup effort in prep for GA push:
Trim trailing whitespace... no func change |
c9d1b78375e7ce7c2ccd7162d48da0eb84631bd3 1172019 |
|
17-Sep-2011 |
covener |
PR51371: cross-compile issues with cgi and apr_procattr_limit_*. |
533d85911f7e4914ee5f9d5c99a2421f4ab4208a 1147493 |
|
16-Jul-2011 |
sf |
Add more (trace) logging to the ap_scan_script_header*() functions
Add ap_scan_script_header*_ex() functions that take a module index for
logging.
Make mod_cgi, mod_cgid, mod_proxy_fcgi, mod_proxy_scgi, mod_isapi use the
new functions. |
7184de27ec1d62a83c41cdeac0953ca9fd661e8c 1132781 |
|
06-Jun-2011 |
sf |
Introduce ap_(get|set)_core_module_config() functions/macros and use them
everywhere.
We know that the core module has module_index 0. Therefore we can save
some pointer operations in ap_get_module_config(cv, &core_module) and
ap_set_module_config(cv, &core_module, val). As these are called rather often,
this may actually have some (small) measurable effect. |
18413e519b6e5d05ff00d18efd784307442ca2f3 1053668 |
|
29-Dec-2010 |
igalic |
In comments: s@ XX @ XXX: @ so they can actually be found seen. |
4748d659b27f6d9d16121e9383bc49379ba61b87 1024460 |
|
20-Oct-2010 |
minfrin |
Avoid unnecessariy initialisation before we test mod_cgi's handler name. |
2d4ea77e21ef7f3707d2c27f6117cc0a36e99b83 983065 |
|
06-Aug-2010 |
trawick |
Intel's compiler warns about assigning the non-enum value 0 to the
enumeration apr_finfo_t.filetype, which is done when forgetting
the previously-derived file type
use the appropriate enum value APR_NOFILE instead
Also change comparisons of the field with 0 to use APR_NOFILE instead,
as is the practice of some existing code. |
36ef8f77bffe75d1aa327882be1b5bdbe2ff567a 951895 |
|
06-Jun-2010 |
sf |
Use the new APLOG_USE_MODULE/AP_DECLARE_MODULE macros everywhere to take
advantage of per-module loglevels |
20653b8cd9f6dc39c9371757b641bcd18f5a96c4 930955 |
|
05-Apr-2010 |
sf |
fix potential file descriptor leak with DEBUG_CGI |
4a13940dc2990df0a798718d3a3f9cf1566c2217 807930 |
|
26-Aug-2009 |
bjh |
Bring back OS/2 support.
Reverses r758929 with a little bit of conflict resolution. |
25d0f8adcab13255494a3572edff1a25f6fbeea3 804764 |
|
16-Aug-2009 |
rpluem |
* Do better checking of pollset operations in various places to avoid segfaults.
PR: 46467
Submitted by: Stefan Fritsch <sf sfritsch.de>
Reviewed by: rpluem |
1ca054782cb35b5f67686a41b1df75c269fa617b 758929 |
|
27-Mar-2009 |
trawick |
remove OS/2 platform support |
d6e81217d873dc3b87fc4ffa5fbac2fad4191a15 645455 |
|
07-Apr-2008 |
pquerna |
Remove all references to CORE_PRIVATE. |
cc5416d6ef1d14c678f1bdf7ed89ae9ad4ded0c0 541990 |
|
27-May-2007 |
rpluem |
* Prevent running through the error stack by returning OK and setting r->status
accordingly if ret is HTTP_NOT_MODIFIED as this breaks mod_cache validating a
stale entity. |
6ca74b0df2f8eb898ac237c2c275a4f1e16c01c5 541926 |
|
26-May-2007 |
niq |
PR#39710 - badly broken errordocuments for CGI
We've just had another duplicate report of this on bugzilla.
We've got a simple patch, and people asking WTF is going on
with inaction. Noone seems clear on why the patch shouldn't
be applied (http://marc.info/?l=apache-httpd-dev&m=117760311129386&w=2). |
55f6cf4594869309d1fff93f3d0fe63b182f6839 451289 |
|
29-Sep-2006 |
rooneg |
Follow up to r451006, use APR_STATUS_IS_TIMEUP instead of comparing against
APR_TIMEUP directly.
Reported by: jorton
* modules/generators/mod_cgi.c
(cgi_handler): Use APR_STATUS_IS_TIMEUP.
* modules/generators/mod_cgid.c
(cgid_handler): Ditto. |
79072146afc19fded2c2824ca19af1e6143bf690 451006 |
|
28-Sep-2006 |
rpluem |
* Notice that reading of the request entity body failed due to a timeout |
8cf208a882dec6d55252eaa27a5031e5cbab6bdb 442758 |
|
13-Sep-2006 |
niq |
PR 31759 (mutated) - reported by Jo Rhett
Don't return apr_status_t error value from input filter chain. |
842ae4bd224140319ae7feec1872b93dfd491143 420983 |
|
11-Jul-2006 |
fielding |
update license header text |
3d81f57512275ca06a60a9bcbd23c1f8b429fdf2 395228 |
|
19-Apr-2006 |
colm |
Update the copyright year in all .c, .h and .xml files |
e8f95a682820a599fe41b22977010636be5c2717 332306 |
|
10-Nov-2005 |
jim |
No functional Change: Removing trailing whitespace. This also
means that "blank" lines consisting of just spaces or
tabs are now really blank lines |
5c2f87932a2b72c65a02aff9932343275ea9dd5b 326255 |
|
18-Oct-2005 |
fielding |
Remove CGI block on OPTIONS method so that scripts can
respond to OPTIONS directly rather than via server default.
PR: 15242
Reviewed-by: Paul Querna, Andre Malo, William A. Rowe, Jr. |
fb221ea94c43304b860dbf2eafc11c36e344fb95 231167 |
|
10-Aug-2005 |
jerenkrantz |
Fix bug where non-200 CGI responses will not send anything down filter chain.
This is most notable when mod_cache is used. This has been used in production
on wiki.apache.org for a while now.
* modules/generators/mod_cgi.c
(cgi_handler): When a non-zero value is returned by scan_script, set the
status field and ensure that we have an EOS to send down the filer stack. |
7e4aef77225797dab322016e8f609a90f75c7f3e 189560 |
|
08-Jun-2005 |
jorton |
* modules/generators/mod_cgi.c (cgi_bucket_read): Log a specific error
if a timeout occurs from a blocking read; more helpful than a generic
"apr_bucket_read failed" error from some higher-up filter. |
08cb74ca432a8c24e39f17dedce527e6a47b8001 151408 |
|
04-Feb-2005 |
jerenkrantz |
Update copyright year to 2005 and standardize on current copyright owner line. |
f902601ea431a9b56106e0f5f641dd5fd7efbc30 106195 |
|
22-Nov-2004 |
jorton |
* modules/generators/mod_cgi.c (cgi_handler): Ensure all stderr from
the script is logged if it generated a non-local redirect.
PR: 20111 |
42d3dd0fe6973dc43e01f19f964c918e57309295 105297 |
|
26-Sep-2004 |
jorton |
* server/util_filter.c (ap_save_brigade): Handle an ENOTIMPL setaside
function correctly.
* modules/generators/mod_cgi.c (cgi_handler): Revert r1.169,
unnecessary CGI bucket lifetime kludge.
PR: 31247 |
e998ddca3bd01ea7a6fa4e472033d3f8554e0f40 105250 |
|
22-Sep-2004 |
jorton |
* modules/generators/mod_cgi.c (cgi_handler): Fix possible segfaults
in CGI bucket methods if invoked from a subrequest.
PR: 31247 |
03cf1dc42621dfc00b867e80ceeeefa6c5900ae0 104834 |
|
26-Aug-2004 |
nd |
#ifndef AP_UNSAFE_ERROR_LOG_UNESCAPED the stderr to errorlog stuff
for those who don't want to escape (as in server/log.c) |
828556b770445544a644d1f79f74cb24c6e7e527 104780 |
|
24-Aug-2004 |
stoddard |
Escape bytes returned by the errfn because it might be from an untrusted source |
d86551ca954d666d5b15ad38e9daf45680516c25 104439 |
|
01-Aug-2004 |
jerenkrantz |
Remove deprecated APR_STATUS_IS_SUCCESS() macro in favor of direct test against
APR_SUCCESS. |
5cbcfb67829b89d261f9a1f16350212b1c776411 104251 |
|
12-Jul-2004 |
clar |
rev back to previous version, removing chnges to overload detach field , putting back addrspace field |
9982ed28dd98cf51e756a3ef5d217a3342c84edb 104209 |
|
09-Jul-2004 |
clar |
Overloading detached field in cgi_exec_info_t stuct in order to use same field to set detached and addrspace values for proc to be started. |
2fe2d6ca1223e3ea902ea3f042a2b8c94ad01816 103946 |
|
14-Jun-2004 |
clar |
Added new field in apr_procattr_t and cgi_exec_info_t structures to support loading in current or new address space (NetWare ONLY).
Replaced changes that added APR_PROGRAM_ADDRSPACE committed 6/11/04.
Reviewed by Brad Nicholes |
6d76864e972688019d104782641074c235c087d7 103622 |
|
05-May-2004 |
jorton |
* modules/generators/mod_cgi.c (cgi_handler): Soak up stderr from nph-
scripts correctly.
PR: 18348
Submitted by: Jeff Trawick (in mod_jcgi) |
dd9f5a7142eb6244cb0056d05bd9258b8492cb9f 103621 |
|
05-May-2004 |
jorton |
* modules/generators/mod_cgi.c (cgi_handler): Combine common code
between nph and non-nph handling; use a CGI bucket for both cases if
APR_FILES_AS_SOCKETS. |
13ed2a88decd6dbe13b11467e7f648f2996b7a70 103437 |
|
18-Apr-2004 |
jorton |
Implement the "CGI bucket" in mod_cgi to handle stderr output during
script execution, preventing deadlock if stderr output fills the pipe
buffer:
* modules/generators/mod_cgi.c (log_script_err): Return a read error.
(cgi_bucket_create, cgi_bucket_dup, cgi_read_stdout, cgi_bucket_read):
New functions.
(cgi_handler): Use new CGI bucket rather than a pipe bucket if
APR_FILES_AS_SOCKETS; use zero read timeout from stdout/stderr during
script execution.
PR: 22030
Submitted by: Joe Orton, Jeff Trawick |
78cd48acd325773619d78ac0d7263a99a8922fae 102618 |
|
09-Feb-2004 |
nd |
fix name of The Apache Software Foundation |
08cecb2a91c86c409dc905266479725e3dbfb19d 102565 |
|
08-Feb-2004 |
nd |
fix copyright dates according to the first check in |
04891cf70e0bfc38bfb027541dc821f04c754ff7 102524 |
|
06-Feb-2004 |
nd |
apply Apache License, 2.0 |
26a4456dd6f1a5d7d7fff766551461a578687c4a 102135 |
|
01-Jan-2004 |
nd |
update license to 2004. |
2e7ef6efb7164346000607d5b5c2d2d392d1a5ea 101788 |
|
16-Nov-2003 |
jwoolley |
get rid of _FOREACH |
1fbf6ba0f5207e6637b49f9a9dfcc779bbe952a9 101154 |
|
03-Sep-2003 |
trawick |
switch to APR 1.0 API (which is still in flux)
because of the changes to the argument lists of apr_mmap_dup and apr_socket_create,
2.1-dev won't build with apr and apr-util's 0.9 branch anymore |
98ebafaf350a6b091fe22c2899a80f7855c70a66 101069 |
|
23-Aug-2003 |
nd |
drop superfluous argument from ap_ssi_parse_string.
The new API should now be stable. |
679cafe33462d8c6bd0a74cc4359e561d19a0aaf 101047 |
|
22-Aug-2003 |
nd |
adjust mod_cgi and mod_cgid
bump MMN for API change. |
9efe68be3c81ee85225972195fb725dbfc2e8b24 99211 |
|
04-Apr-2003 |
trawick |
Fix the inability to log errors like exec failure in
mod_ext_filter/mod_cgi script children (e.g., exec failure). This
was broken after such children stopped inheriting the error log
handle.
(For this to work with mod_ext_filter, that module's LogStderr option
has to be on.) |
1d509de8742bc4904aad80d982650393cd5bc1f3 98630 |
|
12-Feb-2003 |
trawick |
mod_cgi, mod_cgid, mod_ext_filter: Log errors when scripts cannot
be started on Unix because of such problems as bad permissions,
bad shebang line, etc.
Some minor points:
If mod_ext_filter debug is enabled, we go ahead and burn cycles
in the parent to try to discover when we won't be able to exec
the script.
The mod_cgid handler wasn't communicating the right log level to the
daemon; that was required to get the child errfn to spit out the
right message, and it may fix an existing problem. |
33bdcae1f7a1a65e351dda2a766a0cf28b1e695d 98573 |
|
03-Feb-2003 |
nd |
finished that boring job:
update license to 2003.
Happy New Year! ;-)) |
4905e59892eac216645d178e0a0e827224619c96 97601 |
|
22-Nov-2002 |
trawick |
Fix the building of cgi command lines when the query string
contains '='.
PR: 13914
Submitted by: Ville Skytt� <ville.skytta@iki.fi> (mod_cgi)
Jeff Trawick (mod_cgid) |
e65b56dc229f063425fac589002e34c8246ad878 97364 |
|
31-Oct-2002 |
trawick |
Terminate CGI scripts when the client connection drops. This
fix only applies to some normal paths in mod_cgi. mod_cgid
is still busted.
A prereq for this fix is the change to content-length filter to
notice c->aborted:
http://cvs.apache.org/viewcvs.cgi/httpd-2.0/server/protoc
ol.c.diff?r1=1.119&r2=1.120&diff_format=h
PR: 8388 |
e9202986cea824aaa8a423da0ff6d4870d86728e 96241 |
|
30-Jul-2002 |
stoddard |
Log error message to the client without the path name. |
6b87b6eee6a43f40ef6bead9ef3173979b4cd76c 95899 |
|
27-Jun-2002 |
rbb |
Fix a long-standing bug in 2.0, CGI scripts were being called
with relative paths instead of absolute paths. Apache 1.3 used
absolute paths for everything except for SuExec, this brings back
that standard. |
35a46a749c8fed902e5b7f3b74f22192ca6a9d52 95853 |
|
23-Jun-2002 |
wrowe |
Simplify add_ssi_vars() and move the ssi/cgi vars into their respective
functions [so we may address r->subprocess_env in the ap_cgi_build_command
win32 handler.] |
64f9a806e490593c6c4f44ab70b46f3d229e5879 95844 |
|
22-Jun-2002 |
wrowe |
Note the changed meaning of the NULL next_filter argument to the
ap_sub_req_lookup() family, and fix a few oddball cases (those are,
PATH_TRANSLATED reference issues.) |
4f6effa17a5084085c9104b0bb97c2ba1622cfa6 95633 |
|
13-Jun-2002 |
jerenkrantz |
Per RFC 2616 section 9.4, we SHOULD return the content-length if possible on
HEAD requests (even for CGI requests). Also do it because it fixes the cause
of .37's demise.
This also fixes a condition seen on FreeBSD-4.6 where HEAD requests on CGI
scripts would hang because the OS would return EAGAIN in log_script_err
(via apr_file_gets). Since we never read the script output, this caused
FreeBSD to not let us read stderr. |
fa861fc5a880d2c3a5ecc0ec71fa7da556adf5c1 95623 |
|
13-Jun-2002 |
wrowe |
Solve the 80/20 by initializing and storing server_rec->timeout and
server_rec->keep_alive_timeout in apr_time_interval_t format (in apr
units, whatever they be), as both values exist to pass into APR, and
all APR timeouts are in apr_time_t.
Reviewed by: Cliff Woolley |
c8a83e9305c0080d92c25cca91c376a9cc754e16 95536 |
|
06-Jun-2002 |
wrowe |
Cleanup an emit |
1079536268898f733a5f646c3c9a1e040e0146a8 95534 |
|
06-Jun-2002 |
bnicholes |
Consolidated the startup attributes for building the command line for a CGI
binary into a single structure. This allows platform integrator to manipulate
the startup parameters much more easily. Also added the detach attribute
so that each CGI binary can be spawn appropriately for the OS. |
8abcc73436888a98721b10f0c09206f6fea68c55 95376 |
|
30-May-2002 |
jerenkrantz |
Rewrite mod_cgi's input handling to use brigades and input filters directly.
This removes the unnecessary overhead of the *_client_block functions.
Optimize usage of the dbuf char* (don't do pcalloc on it!) |
6b72ae4107190273b39f666a4632f3ad8c794385 95374 |
|
30-May-2002 |
jerenkrantz |
- Remove APR_STATUS_IS_SUCCESS calls in favor of directly testing APR_SUCCESS.
- Minor style nit with spaces.
(No functional changes.) |
397cb27b71fea7530694951e6e12c7138eaf505a 95371 |
|
30-May-2002 |
jerenkrantz |
Call apr_file_write_full instead to achieve the same effect.
apr_file_write_full is *guaranteed* to either write everything or return
an error. It'll only write short if it received an error. |
76dc8df69725c6f4d2a86438e9e41e566b1d2aff 95369 |
|
30-May-2002 |
jerenkrantz |
Stylistic changes - remove tabs, clean up long lines, etc.
(No functional changes.)
(Functional optimizations/cleanups coming later...) |
12901074f5d6b36d08be84d8637b6f2c21e0da26 95151 |
|
17-May-2002 |
trawick |
stop using APLOG_NOERRNO in calls to ap_log_[pr]error() |
b9cf7102006ac2ccfebcb78174585986ff127ba9 94751 |
|
22-Apr-2002 |
jwoolley |
AcceptPathInfo was totally backwards... it would reject when set to on and
by default and accept when set to off for the default handler, and would
reject only if set to accept for mod_cgi(d) and mod_isapi.
PR: 8234 |
e24079a2b4b568fa829c866f1b8bf0e47895390c 94638 |
|
13-Apr-2002 |
wrowe |
process_cgi is more descriptive than replace_cmd.
It also affects query_string args. |
4c285e175276d99dd37c807b00d3ccb35b9c3aed 94635 |
|
13-Apr-2002 |
wrowe |
Wasted at least 20 minutes reparsing this code till I determined it's
correct. But make the sucker legible so noone else repeats the experience. |
fb4d6124f12703dd1eed48e27dd712f046fea222 94634 |
|
13-Apr-2002 |
wrowe |
In order for Win32 to accept the shebang line of #!perl so we 1) search
the PATH and 2) resolve perl.exe for perl, we must add the progtype so
we can override APR_PROGRAM with APR_PROGRAM_PATH. This is the API change
only for the cgi build command line option function. |
941725dce6aacd8189eadf7a931befe57534f04d 94343 |
|
31-Mar-2002 |
brianp |
Fixed script error logging, which I'd left commented out after making
the changes to use a brigade to read the script headers
Obtained from:
Submitted by:
Reviewed by: |
2fc50921b88defeb7127985dfe4b4130175e069e 94304 |
|
29-Mar-2002 |
jwoolley |
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. |
0ece9fd984135c4eb48d6a2d176db717c8920b93 94152 |
|
24-Mar-2002 |
trawick |
eliminate unused variables |
5842e6b336b1cc0252b6cc2944dd81c7d3a19a1b 94151 |
|
24-Mar-2002 |
brianp |
Changed mod_cgi to not do single-byte reads to consume the
script headers |
d84226204b640aabb21e8431385a46fe2bc3ac0e 94122 |
|
22-Mar-2002 |
wrowe |
An error is an error. Since we replace the message with 'failed to
invoke command; ...' we aught to log it at the right level. |
f1d70fe36580794c0f33bcbe269b99d98202386b 94119 |
|
22-Mar-2002 |
wrowe |
Trace the invoked command when we use CreateProcess()-style emulation
of execxx() for apr_proc_create(). |
e0d102c882a7ed34d3eec24b36da49f097066a36 94056 |
|
20-Mar-2002 |
stoddard |
Commit 1 of 2 to:
1. rename ap_rset_content_type to ap_set_content_type
2. reverse the arguments on the call to aligh with ap_set_content_length |
adb1e17ae7e1cf5cf4f8f2b07d3389cb55f4bece 94052 |
|
20-Mar-2002 |
trawick |
Get nph- CGI scripts working again by avoiding filters that can't
possibly deal with a script that generates the protocol header.
PR: 8902, 8907, 9983 |
e9dacb49354baa7346837faad335f27caa7fe1ee 94027 |
|
20-Mar-2002 |
stoddard |
First commit to introduce accessor function to set r->content_type.. |
32c4bc04f89b16521718145dc731f750144d7b38 93965 |
|
16-Mar-2002 |
wrowe |
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. |
d521bfef0e1a65993d5e302628ac68a2c91a195f 93940 |
|
14-Mar-2002 |
trawick |
deal with the rename of kill_after_timeout to APR_KILL_AFTER_TIMEOUT |
bc8fd1b0b1afdf89b8d28eefa8cd74e26ba97986 93918 |
|
13-Mar-2002 |
fielding |
Update our copyright for this year. |
d4fcf63a5d9171d50c0d04e05a35ec6bf1f85100 93474 |
|
18-Feb-2002 |
jerenkrantz |
Fixup DEBUG_CGI code paths to compile and not leak fds.
PR: 9670, 9671
Submitted by: David MacKenzie <djm@pix.net>
Reviewed by: Justin Erenkrantz |
2757a7145dd4a118957fd89b9bb8bc85269eb429 93468 |
|
18-Feb-2002 |
jerenkrantz |
Correctly check script_in variable.
(script_out and script_err are already correct.)
PR: 9669 |
c6a9d49433c9ba5b18b26c3d764f1bbcb9746090 92676 |
|
31-Dec-2001 |
wrowe |
Ever tried to extract some value of QUERY_STRING from within SSI?
Now you can :) Provides $0..$9 results for any regex evaluation,
and strengthens the expr parser for regex expressions. |
b904e9a01597a4fa225e5c479db42dff51bc01aa 92609 |
|
26-Dec-2001 |
jwoolley |
Related to Brian's commit to fix the XXX comments I'd added a while back.
These lines were broken too, I just hadn't commented them. |
2d874d89e8a4ec21b18b1d65f0566643f65fd1a9 92601 |
|
26-Dec-2001 |
brianp |
Fixed calculation of bucket lengths |
9301ddc7326067ee6d62208789bd491d5632d57c 92452 |
|
13-Dec-2001 |
wrowe |
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 |
e28c02dc08247d3fcb71e81791cac2311a248dfd 92150 |
|
24-Nov-2001 |
rbb |
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 |
9d0665da83d1e22c0ea0e5f6f940f70f75bf5237 92144 |
|
23-Nov-2001 |
ianh |
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) |
b60fdb090e9d0bb5ad64750d936fbe56546a434e 91876 |
|
12-Nov-2001 |
stoddard |
Performance: Move the is_included strcmp to after the check to see if the
request is to be served by the cgi handler. |
88db01da14402d05685e9c14842e5f4b9a1dac86 91868 |
|
12-Nov-2001 |
jwoolley |
Port Justin's mod_cgid change to mod_cgi.
mod_cgi wasn't actually broken in the way that mod_cgid was, but
it's still good do have these checks be against APR_SUCCESS rather
than 0 for clarity. |
17bdb8862482dff763afd4d86a58de533afff4ca 91866 |
|
12-Nov-2001 |
jwoolley |
Remove the returned-length "w" parameter from apr_bucket_heap_create()
and apr_bucket_heap_make(). It was useless, since the length is invariant
from the length passed in and from the resulting bucket's b->length. This
takes care of a long-standing issue first brought up in February and
discussed on the dev@apr list. (Issue #2 from the "Bucket API Cleanup
Issues" thread.)
See http://marc.theaimsgroup.com/?l=apr-dev&m=98324983126666&w=2
Reviewed by: Ryan Bloom (concept) |
d4f351074a8f7af5e41aa0a70410816436608e3d 91860 |
|
11-Nov-2001 |
ianh |
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 |
140418b00d1cd361b4d75f4bd4e706469b51d760 91062 |
|
18-Sep-2001 |
jwoolley |
Fix constness problem reported by gcc:
mod_cgi.c: In function `include_cmd':
mod_cgi.c:812: warning: passing arg 1 of pointer to function from incompatible
pointer type
Reported by: Ian's autobuild |
64b1ebf6fcf8e3d2af36005a7585f13e88b04bd1 91059 |
|
18-Sep-2001 |
wrowe |
Here's the declaration for all to share. Don't expect many to use it. |
14c6f2e13d97a4fafac1fbc247a274a298d5b418 91058 |
|
17-Sep-2001 |
wrowe |
Remove the Win32 script-processing exception from mod_cgi, and
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. |
4d003677925ceb0abefb9c95355b4c9e9e502899 90735 |
|
27-Aug-2001 |
rederpj |
Moved split_and_pass_pretag_buckets back to being a
macro at Ryans's request. Removed the return from it
by setting and returning a return code instead. Updated
the code to check the return code from teh macro and
do the right thing. |
a42a25f0b63e4753c61c3e9dc6f9050ff610ceb4 90600 |
|
24-Aug-2001 |
trawick |
fix what would seem to be a serious problem in
split_and_pass_pretag_buckets(): the retcode is not
specified on one of the paths |
8878c7f08b045b5b349a10e98be9d8c5e1fc2da1 90563 |
|
23-Aug-2001 |
wrowe |
Optimize out what is a very expensive in-request call to
ap_server_root_relative (and is becoming more expensive).
Now the call happens in the config phase where it belongs.
Note someone can hop in and transpose the stat and open
with an open and getfileinfo if you are a performance hound. |
53b8cdb3621b11b897438d8990d20e0b78f0d4b7 90554 |
|
23-Aug-2001 |
rederpj |
Fix for mod_include. Ryan's patch to check error
codes put a return in the wrong place. Also, the
include handler return code wasn't being checked.
I don't like macros with returns, so I converted
SPLIT_AND_PASS_PRETAG_BUCKETS into a function. |
48d2edbfb84e5559b5da0f8d614ccab805cc67a8 90090 |
|
11-Aug-2001 |
rbb |
Fix the new method code. We need to cast 1 to an apr_int64_t or it will
be treated as a 32-bit integer, and it will wrap after being shifted
32 times.
Submitted by: Cody Sherr <csherr@covalent.net> and
Ryan Morgan <rmorgan@covalent.net> |
56a50ab858b82dec05df7707f64e97fdc0f4446c 89943 |
|
06-Aug-2001 |
wrowe |
We are done with this subrequest (before we even got started...) so
dump it early. |
336cb329ecdc0b5a489ab2242e38e8119883ab55 89942 |
|
06-Aug-2001 |
wrowe |
This is not C++, falling out of scope doesn't constitute destruction :) |
cd32ea298a494089c6886c8de0e8ad13ddc7ee6c 89932 |
|
06-Aug-2001 |
wrowe |
Multiviews and mod_negotiation will already handle this case, it never
belonged in mod_cgi itself. |
34e0e8353c3b3c91cda62353c2f63a7e9247f871 89789 |
|
30-Jul-2001 |
stoddard |
Be a bit more explicit. If the filetype is not an APR_REG, the fail the request.
This relys on directory_walk having already resolved symboloc links. |
286129112dc6bfee53f0db4f945d3352d4d5bed7 89788 |
|
30-Jul-2001 |
stoddard |
Win32: Get exec cgi tag working. finfo.protection == 0 on Windows from the
apr_stat() call in directory walk (because discovering the permissions on
Windows is ridiculously expensive). All we really need to know is whether the
file exists. |
24caf3c0d8936140307c4ccc251a7f19ea4304c6 89717 |
|
26-Jul-2001 |
wrowe |
Safe casts - we are assured that len_read is positive, but it must be
stored as an int to initially check the ap_get_client_block() result. |
72360798a27566f28e2cbee0e39a0a6e3c3bd729 88390 |
|
28-Feb-2001 |
wrowe |
Goodbye ap_send_http_header |
ce7c9a2371d98c999068d80659d1f641c6494f92 88345 |
|
26-Feb-2001 |
rbb |
Get mod_cgi building again after moving a bunch of code from the HTTP
module to the core. |
a6b9ed64fdf548c61de9714e2cfb999ec59d149c 88225 |
|
18-Feb-2001 |
gstein |
*) Introduce "ap_conf_vector_t" type to assist with legibility and provide
some type safety. (unfortunately, our old "void*" is type-safe with the
new one, but over time we should be better)
*) Propagate the new type to all appropriate functions.
*) Random cleaning, whitespace, stylistic nits. |
b99dbaab171d91e1b664397cc40e039d0c087c65 88184 |
|
16-Feb-2001 |
fielding |
Update copyright to 2001 |
b36ea83a4bf1ecbd3b5655882912a5f5d259c41c 88141 |
|
13-Feb-2001 |
dougm |
s/apr_bucket_pipe_creat/apr_bucket_pipe_create/ typo |
024cd9589e52cf11ce765dfddb5b5f0c6e421a48 88061 |
|
10-Feb-2001 |
gstein |
*) continued header revamping
*) torch some headers (and some libs) from the autoconf stuff |
750ec6495c0f3f2786f0655420fe604a1a91725b 88045 |
|
10-Feb-2001 |
gstein |
*) remove obsolete http_conf_globals.h
*) simplify all this #ifdef'ing: just nuke the unixd.h header. it isn't
actually needed. |
066877f1a045103acfdd376d48cdd473c33f409b 88019 |
|
08-Feb-2001 |
dougm |
renaming various functions for consistency sake
see: http://apr.apache.org/~dougm/apr_rename.pl
PR:
Obtained from:
Submitted by:
Reviewed by: |
61b97a6df671528eff58427f212d70ccf5b97dd0 87992 |
|
06-Feb-2001 |
rbb |
Make sure that mod_include's post_config hook always runs before
mod_cgi(d)'s post_config hook. Mod_include creates a hash table in the
post_config stage that mod_cgi(d) uses during it's post_config stage, so
it must be done in this order.
Submitted by: Brian Havard <brianh@kheldar.apana.org.au> |
445997e06464e7625c7f0e22917f8f2d9876cfff 87984 |
|
05-Feb-2001 |
rbb |
Move the logic for creating CGI processes from mod_include to mod_cgi(d).
This removes a good deal of duplicate logic for creating CGI scripts. |
f54da7877f9e092465df38bfda142f3e71dbb7aa 87933 |
|
31-Jan-2001 |
wrowe |
Eliminate all assumptions that finfo.protection reflects the existance
or absense of a file. finfo.filetype is defined as 0 if APR_NOFILE,
or a non-zero value if the file could be apr_stat()'ed. |
3ca2dd665f27b1e9e4bff47f4ec3f22dc2655682 87878 |
|
28-Jan-2001 |
wrowe |
Another module to cooperate with APR_FINFO_ |
6f984345bbfa9342dde1f2b7b8c35b7987d078af 87760 |
|
20-Jan-2001 |
wrowe |
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. |
b980ad7fdc218b4855cde9f75a747527f50c554d 87731 |
|
19-Jan-2001 |
wrowe |
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. |
73e8b26287de5c06fa470d36162e103dbac9c7e5 87697 |
|
17-Jan-2001 |
wrowe |
Provide apr_pool_t arg to register_hooks, since anything they do in that
step -must- be done with a pool that will not outlive the cmd pool, from
which they may have been dynamically loaded. |
ca53a74f4012a45cbad48e940eddf27d866981f9 87617 |
|
09-Jan-2001 |
dougm |
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: |
e95f5a6ebefb83d0e8a82cbc4db7d354957a817d 87604 |
|
07-Jan-2001 |
ben |
Make handlers use hooks. |
365c33fd9c0fc3ac27c0bd1d360a5a94980c576a 87576 |
|
03-Jan-2001 |
trawick |
mod_cgi: Fix some problems where the wrong error value was being traced
(errno instead of apr_status).
mod_cgid: Keep some of the code in synch with the version in mod_cgi. |
1a9f3fd327fd87101580ee3c9924ef3210d490bf 87537 |
|
28-Dec-2000 |
rbb |
On Unix, we do not want to use an absolute path for CGI scripts. SuEXEC
will not let us use one, and when not using SuEXEC, we chdir() into the
correct directory. |
2975523a2901fc601ae9510082a7d4fb11bb9aec 87359 |
|
15-Dec-2000 |
ake |
Get exe CGI's working again on Windows |
ef860f51362b0568d56ffc48c62d1dea7f9fd7b8 87095 |
|
27-Nov-2000 |
gstein |
*) sprinkle a little magic "const" dust around (specifically, to compensate
for the prototype change to ap_os_create_privileged_process())
*) wrap some long lines |
cccd31fa4a72fe23cc3249c06db181b274a55a69 87080 |
|
26-Nov-2000 |
gstein |
*) Compensate for recent changes in the APR headers. Specifically, some
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() |
f0cf4b755f461023638038b3b054671370485cd8 87010 |
|
18-Nov-2000 |
wrowe |
Cleanup more compiler warnings. |
de916b564ef781bece2cac6b42c135f467a25b71 86934 |
|
13-Nov-2000 |
trawick |
Clean up some of the warnings from a Tru64 build, mostly due to
the recent apr_ssize_t->apr_size_t changes. The problem in mod_cgid
was an int function which didn't have a return statement. |
b5117cae2e5fa9c1489c17223ed117b998b219b4 86720 |
|
23-Oct-2000 |
wrowe |
Fix foobar |
39813b8983b16dce75194e7b70184fd68743db90 86712 |
|
23-Oct-2000 |
manoj |
Add back suexec support. |
3d96ee83babeec32482c9082c9426340cee8c44d 86609 |
|
16-Oct-2000 |
wrowe |
Renamed all MODULE_EXPORT symbols to AP_MODULE_DECLARE and all symbols
for CORE_EXPORT to AP_CORE_DECLARE (namespace protecting the wrapper)
and retitled API_EXPORT as AP_DECLARE and APR_EXPORT as APR_DECLARE.
All _VAR_ flavors changes to _DATA to be absolutely clear.
Thank you Greg, for the most obvious suggestion. |
3e83c8e4cf6eb4b146d207a0a9ceb31872bd45a8 86606 |
|
16-Oct-2000 |
wrowe |
Document more bad Win32 behavior... if the url isn't .exe, then don't
throw an .exe |
52360d18cfc5d2e43fc66bce1410857d601eab32 86495 |
|
10-Oct-2000 |
trawick |
Write all of the request body to the child, not just what the kernel
would accept on the first write.
Because the pipe is non-blocking (via setting an APR timeout), we
have to send in a loop. |
4b86db47932a21da10cd35317b3da737f2b073c4 86246 |
|
18-Sep-2000 |
rbb |
Change r->filters to r->output_filters. This sets things up for us to
put input filters into Apache. |
428e49b7e5886f1f0a47c1e00fc9cc7cd0b33b52 86185 |
|
09-Sep-2000 |
fanf |
Use wrapper macros to avoid the verbosity of the AP_RING macros when
doing things with bucket brigades. |
321f97740766bd0accb8ad67a6423ab0e10b8574 86178 |
|
08-Sep-2000 |
fanf |
Reduce the manualarity of managing bucket brigade lists by using the
new AP_RING macros. Most of this commit is fairly pedestrian as you
would expect, but I had to redo the chunking filter because of the
amount of pointer juggling it did. I have done some minimal testing
of this patch and it seems to work. |
d956a6e1010280e8807931bb4d0335e29d1d940c 86150 |
|
26-Aug-2000 |
trawick |
Call ap_pass_brigade() *before* soaking up stderr. The normal CGI
is going to write a bunch of stuff to stdout and nothing to stderr.
Reading stderr before processing the stdout pipe can cause deadlock if
the CGI fills the kernel buffer for stdout because the CGI will stall
writing to stdout while the httpd process will stall reading from the
CGI's stderr.
The NPH CGI behavior was unchanged. If this is still a problem for NPH
CGIs, it was a problem before filtering too.
Also, get rid of a couple of unused variables in cgi_handler. |
aba3a7c21845f43f4a20fd47beff23299855ecf5 86148 |
|
26-Aug-2000 |
rbb |
Make CGI's use bucket brigades. This will only work with mod_cgi for the
time being. The changes should apply equally to mod_cgid, but I haven't
had a chance to really try it yet. This is definately sub-optimal as far
as performance is concerned. The concepts are there, and the flags are
available for performance tuning, but I didn't want to really get too
enmeshed in it today. |
a3fbce4c162e73ad70f26bfebcbce48f89523b7f 86140 |
|
23-Aug-2000 |
rbb |
Fix a small typo and an incorrect type.
Submitted by: Victor J. Orlikowski <v.j.orlikowski@gte.net>
Reviewed by: Ryan Bloom |
443f96ac390c06ca4fa763d3bfcfbc8f757bd756 86136 |
|
23-Aug-2000 |
rbb |
Remove IOLs from Apache. They are no longer necessary, now that we have
filtering beginning to work. There is a hack that has been repeated
through this patch, we morph a pipe into a socket, and put the socket
into the BUFF. Everytime we do that, we are working with a pipe from
a CGI, and we should be creating a pipe bucket and passing that bucket
back. Because we don't actually have pipe buckets yet, we are using this
hack. When we get pipe buckets, this will be fixed. |
10a4cdd68ef1ca0e54af296fe1d08ac00150c90b 86008 |
|
06-Aug-2000 |
wrowe |
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: |
1ccd992d37d62c8cb2056126f2234f64ec189bfd 85976 |
|
02-Aug-2000 |
dougm |
prefix libapr functions and types with apr_ |
b6055b7832a0e4d0818416252fff5925aaebae4b 85867 |
|
21-Jul-2000 |
rbb |
Move all APR functions related to strings to their own directory, and
create a new header for those functions. This is the first step to
removing the apr/lib directory completely, and moving those files/functions
to descriptive directories. |
d41217398f0e1031adbb6f5bd37f45737c805def 85723 |
|
28-Jun-2000 |
trawick |
Include strings.h for strcasecmp(), strncasecmp(), and bzero().
Include time.h for time().
This removes a bunch of compiler warnings with gcc -Wall on AIX.
Submitted by: Jeff Trawick, Victor Orlikowski |
000b67449410515eac43e76ef6667915bfd4d2ab 85686 |
|
24-Jun-2000 |
gstein |
blast the old names for the status codes |
cf4444ff70f9eaecaf3d3830722fa8de9be6fa58 85642 |
|
20-Jun-2000 |
ben |
Convert module and fix warnings. |
ba03385030cfbe81ffa4d35cffbf319df153895c 85623 |
|
20-Jun-2000 |
wrowe |
This patch solves several specific issues:
1.3.x truncated any open/command arguments following the %1 arg.
so this patch adds the char** arguments to several functions
1.3.x did not expand environment strings (%userprofile% etc.)
*) This patch may still not do so, if we are running with a
subset of the 'normal' environment for security reasons.
1.3.x did not parse the extension itself (eg. the .pl key itself)
for the command, failing the 'named' type (eg. perlscript),
so this patch first tests the 'named' key, then the .ext key
PR:
Obtained from:
Submitted by:
Reviewed by: |
e5828f355683dba49dc224e0025a8492c38a21f4 85526 |
|
12-Jun-2000 |
rbb |
Nothing in Apache should be calling stat anymore, so we can remove
the check for sys/stat.h and all references to the resulting macro. |
b1476ba063e6d9577cd86db3db5dd98ff6bc78b9 85449 |
|
06-Jun-2000 |
rbb |
Add the resource limiting code back to Apache 2.0. This only works on
Unix because I can't find any other platforms with rlimit. If there are
other platforms that need this code, then some of the code needs to move.
This has just barely been tested, so it could probably use some good
testing. |
a1b1c0c31c0c1b93261295c341c8d427bfa5a25f 85441 |
|
06-Jun-2000 |
trawick |
Fix zombie process problem with mod_cgi. This problem was introduced
as part of the "Convert ap_proc_t to a complete type." enhancement.
mod_cgi previously declared a ptr to an ap_proc_t, storage was allocated
by ap_create_process() from the request pool, and the ap_proc_t address
was passed to ap_note_subprocess().
With the "Convert ap_proc_t to a complete type." change, ap_proc_t
lived in autodata, but the address was still passed to
ap_note_subprocess(). When the pool was cleaned up, the ap_proc_t
in autodata had been used for something else, so the contents were
garbage, but pool cleanup needed the contents, especially the os
pid to pass to waidpid(). Since this was garbage, we never reaped
status from the cgi child and thus the cgi child remained a zombie. |
8c515be8b2e0effe6071f5ec92a8882a5e6944d7 85428 |
|
05-Jun-2000 |
trawick |
Make the string in a log message unique so we know
what failed. Before, "couldn't create child process: " was
used for a couple of different logs. |
36906f11e659bf5e500ccc93025dab95cd790291 85397 |
|
04-Jun-2000 |
trawick |
EBCDIC: Rearrange calls to ap_checkconv() so that most handlers
won't need to call it.
Submitted by: Greg Ames, Jeff Trawick |
24c954dfdc58b24d5ba8822610ba783a7a118ae6 85392 |
|
03-Jun-2000 |
trawick |
mod_cgi: Make ScriptLog directive work again by fixing the
flags passed to ap_open().
TODO: Roll recent mod_cgi logging changes into mod_cgid. |
ea94c7eb3ab932fa14a2e5d787ff276553880d13 85331 |
|
28-May-2000 |
trawick |
mod_cgi: Restore logging of stderr from child process when ScriptLog
isn't used (as in 1.3), except that on Unix it is now logged via
ap_log_rerror() instead of by the child having STDERR_FILENO refer
to the error log.
Submitted by: Greg Ames
Reviewed by: Jeff Trawick |
e68becff3c3ddc18723c9799b8cc2e6e9c3dbd66 85318 |
|
28-May-2000 |
wrowe |
PR:
Obtained from:
Submitted by:
Reviewed by:
Reverse out all _EXPORT_VAR changes back to their original _VAR_EXPORT
names for linkage (API_, CORE_, and MODULE_). |
30c289e6bc6d28d210b21edd800ab2cfc78a8381 85309 |
|
27-May-2000 |
wrowe |
This patch corrects the issues from the AP_EXPORT and linkage
specification arguments to the ap_hooks.h declarations. As with
the APR_ and AP_ patches, API_VAR_EXPORT becomes API_EXPORT_VAR,
and MODULE_VAR_EXPORT becomes MODULE_EXPORT_VAR.
I will be happy to revert the inclusion of ap_config.h from
httpd.h if this bothers anyone. More individual modules need
to be patched if we do so.
The API_EXPORTs all moved into central storage in the ap_config.h
header. Without WIN32 or API_STATIC compile time declarations,
these macros remain no-ops.
This patch also moves the following data from http_main to http_config:
const char *ap_server_argv0;
const char *ap_server_root;
ap_array_header_t *ap_server_pre_read_config;
ap_array_header_t *ap_server_post_read_config;
ap_array_header_t *ap_server_config_defines;
And the following variables had already moved into ap_hooks.c:
ap_pool_t *g_pHookPool; (initialized now in http_config)
int g_bDebugHooks; (out of http_config)
const char *g_szCurrentHookName; (out of http_config)
The changes to http_main.c are in preparation for that module to
move out to a seperate .exe for win32. Other platforms will be
unaffected, outside of these changes. |
f5d913e797a32274e105222016bd67617bf224a0 85285 |
|
24-May-2000 |
rbb |
Rename stdin, stdout, stderr from new ap_proc_t to in, out, and err because
Windows was having problems with the original names. |
984d71a5392cf20a428ca89bd0464611bb3db6a9 85279 |
|
23-May-2000 |
rbb |
Convert ap_proc_t to a complete type. This lets us access the pid directly.
Only the prefork MPM has been ported so far, the rest of the Unix MPM's are
coming later today. |
111e21f212e787a149337cc061ea53049556c1f1 85265 |
|
21-May-2000 |
manoj |
Remove all remaining instances in Apache code of
ap_{block,unblock}_alarms. |
85482525adee8e37838e0a5fca66e740a7fb5c2e 85232 |
|
16-May-2000 |
stoddard |
Update a couple of modules to use ap_stat() rather than stat().
PR:
Obtained from:
Submitted by:
Reviewed by: |
44e234126d0763097f074175c8250da63048d53f 84986 |
|
18-Apr-2000 |
rbb |
Add logic to timeout CGI scripts properly. This requires that APR pipes
can be timed out. |
404e2e1f8ad30c2d996f5fb6b3a9a4a4a14a004b 84963 |
|
14-Apr-2000 |
rbb |
Change ap_context_t to ap_pool_t. This compiles, runs, and serves pages
on Linux, but probably breaks somewhere. |
7e9a996b274ba111995d85fa04ba416ef2e81b0d 84933 |
|
07-Apr-2000 |
rbb |
Make the server work without asking for buffered file I/O. This removes
all APR_BUFFERED flags from the server, and it fixes a minor bug in the
ungetchar patch (I forgot a file when comitting). |
ab2c1c1c83ec91415565da5a71fbc15d9685caa6 84879 |
|
31-Mar-2000 |
fielding |
Update to Apache Software License version 1.1 |
7463de0c603f07c9e1820e812d2f1a73661843e6 84842 |
|
27-Mar-2000 |
rbb |
Backout layered I/O changes. |
97c0c3f13de0b6189a71a53df005c8b38074c869 84837 |
|
25-Mar-2000 |
rbb |
Enabled layered I/O. Docs are forthcoming. |
64185f9824e42f21ca7b9ae6c004484215c031a7 84725 |
|
10-Mar-2000 |
rbb |
Fix all the License issues. Including:
s/Apache Group/Apache Software Foundation/
s/1999/2000/
s/Sascha's license/ASF license |
cb5134e26dede7d8a7439c5dd5f054750e42947b 84687 |
|
01-Mar-2000 |
rbb |
Add a test program for pipes. Add support for non-buffered CGI's to mod_cgi.
This still doesn't terminate CGI's after a time limit, that's the next step. |
0c94dfa6040c524600c964bff626db0c69342d9d 84617 |
|
13-Feb-2000 |
stoddard |
Set up return codes correctly in the failure case. |
9625528fcf4fa27288f3be080a1979c8ef60d7df 84497 |
|
19-Jan-2000 |
rbb |
Manoj has been pushing for this for a while, but I've been too dense
to understand that he was right. :-) Basically, this makes the modules
use ap_config to test for header file inclusion. This method is not to
be used for larger modules that run autoconf theirselves. Including
ap_config is only valid for modules which rely on Apache to do their
configuration. Currently, this is only the core modules. |
8f3ec4772d2aeb347cf40e87c77627bb784dd018 84492 |
|
19-Jan-2000 |
rbb |
This is a huge change to the configure system. Basically, this name space
protects most, if not all, of the Apache macros. This has been tested on
Linux using all of the Unix MPM's. The biggest push was that Apache's
httpd.h header file can no longer include the ap_config.h file. Most of the
other files include this themselves now.
Submitted by: Ryan Bloom and Manoj Kasichainula |
d9f2c22804bcbc9ad07d4ec18fbb8aa7c042dcd0 84416 |
|
10-Jan-2000 |
bjh |
Rework ap_finfo_t to split the file type out of the protection field.
I've taken a stab at the unix implementation but tested only on OS/2. |
6db54801798f6021bb464de7b3fdcc9dc3150f7b 84413 |
|
09-Jan-2000 |
dgaudet |
time overhaul:
- ap_time_t is a 64-bit scalar, microseconds since epoch
- ap_exploded_time_t corresponds to struct tm with a few extras
probably broken on anything except linux. |
d96aa158770d3f83cb59cf0f2f7402e175f7dfcc 84397 |
|
06-Jan-2000 |
rbb |
Separate the stat structure from the file structure and use ap_stat and
ap_getfileinfo in apache. |
9ede6357edc9aff1fb2f7edebefab473673298aa 84393 |
|
04-Jan-2000 |
rbb |
Initialize all ap_file_t's to NULL. This allows ap_open and ap_stat to
work together without causing memory leaks. |
a531b41f5a8c647fd2ca92723e8671c3a7eb4970 84293 |
|
14-Dec-1999 |
rbb |
Make CGI's work correctly in Apache 2.0. APR wants the first element in the
argument list to be the program name. This is exactly what POSIX requires,
and what Windows wants, but Apache 1.3 would create the arg list, and then
have another function squeeze the program name in later. This patch fixes
that by having mod_cgi put the program name the correct place. |
99b130dd1f797c0acf3ffa960b3c9acefd29f0fc 84288 |
|
13-Dec-1999 |
rbb |
Get rid of more platform dependant code. |
a952e0c6ece342d88f2bc04e20dcfc563398eed3 84215 |
|
02-Dec-1999 |
rbb |
We may not always want to make the pipes between processes non-blocking.
This patch allows us to set if both sides of the pipes are nonblocking,
both sides are blocking, just the parent side blocks, or just the child
side blocks for all three of the pipes created during create_process. I
have also modified Apache to take advantage of this change. |
ebc2d0583ce25c4d7894da8392ca57ccc608ce49 84076 |
|
31-Oct-1999 |
manoj |
Undo the ap_bgets errno patch. It will return status with ap_berror(). |
cd9759ef9d13a7a92549016ec2ae15dbd0cecc29 84075 |
|
30-Oct-1999 |
manoj |
An errnoless interface for ap_bgets |
f983e40636a342454dc4f602f5a0f4685ddc423d 84074 |
|
30-Oct-1999 |
manoj |
ap_bwrite now exports an errnoless interface. |
3d8c2a0997bb0a3d3346eba0bd82e9061a2554e6 84033 |
|
25-Oct-1999 |
bjh |
Make args to CGIs work. |
b08aede24851a9e00d75883c2012e51ad9a92466 84009 |
|
20-Oct-1999 |
rbb |
Fix mod_cgi so it works on Unix systems. We need to be VERY careful
about calling ap_cleanups_for_exec now. There is really no reason to call
this from outside of APR, unless you are specifically doing a fork/exec.
If you use ap_create_process, it will call ap_cleanups_for_exec for you
in the right spot now. Also cleaned up some of the code because it helped
with debugging. We need better error messages in mod_cgi now.
iCVS: |
c9bbb7e5f28d9ad6eec70d02fcc6d0a108df6a67 84008 |
|
20-Oct-1999 |
bjh |
Apply ap_log_error() errno parameter addition to a few more files. |
15cdcf089057a76a4dbda4d7f22e1ab69ebe051a 83999 |
|
17-Oct-1999 |
stoddard |
A couple of arg swaps on ap_open |
282830c30ad9e81637c66ea801f7e995d7855fa5 83997 |
|
15-Oct-1999 |
stoddard |
Fix argv list generation bug. |
cae1ced13fe3e61ad0b49341f7c64ca53155f748 83993 |
|
14-Oct-1999 |
stoddard |
Still does not work reliably, but it's closer to being right. |
39d3f62de22c96920d8865e196aec0a94d799f61 83978 |
|
12-Oct-1999 |
stoddard |
Need to pass in just the directory, not including the filename. Note that CGI
arguments are being completely ignored. suexec needs to be handled, the CGI arguments
need to be canonicalized (e.g., quote args containing spaces, etc.) and ScriptInterpreterSource
needs reimplementing. Whew! |
30cbb3cab90051f0d98092ad9a64698b50977163 83977 |
|
12-Oct-1999 |
stoddard |
Fix bug interpreting cgi_child return code. Do some clean-up. |
7fefa3b9b538de2361e95a645557d87b86e562c4 83975 |
|
12-Oct-1999 |
manoj |
Fix function arguments to respect APR's New World Order. |
09db2589aa37e56cadc2227ebeb1429b94bd36d2 83965 |
|
11-Oct-1999 |
stoddard |
First cut at migrating mod_cgi over to APR. Still needs some work to make it Win32 friendly (use named pipes, etc.)
Submitted by: Paul Reder
Reviewed by: Bill Stoddard |
b4c8a80f7dbfc9b56dbe03bdc28f0b5eb5f23697 83852 |
|
31-Aug-1999 |
rbb |
Changed pools to contexts. Tested with prefork and pthread mpm's. I'll
check this out tomorrow and make sure everything was checked in correctly. |
e53c33f41a2b71fbdae29c95b51080be96a71321 83790 |
|
26-Aug-1999 |
fielding |
Remove support for ap_suexec_enabled
Submitted by: Dean Gaudet |
19c2bd3fc0a44f0ed4eaa7b4158f3917e9c5f988 83788 |
|
26-Aug-1999 |
fielding |
Remove timeouts as part of pthreads changes.
Submitted by: Bill Stoddard |
fd0edaa8e3d4dd67d0604ccef2e96b071db96643 83770 |
|
26-Aug-1999 |
fielding |
Start to implement module-defined hooks that are a) fast and b) typesafe.
Replace pre_connection module call with a register_hook call and
implement pre_connection as a hook. The intent is that these hooks will
be extended to allow Apache to be multi-protocol, and also to allow the
calling order to be specified on a per-hook/per-module basis. [Ben Laurie]
Port a bunch of modules to the new module structure.
["Michael H. Voase" <mvoase@midcoast.com.au>]
Submitted by: Ben Laurie |
0f081398cf0eef8cc7c66a535d450110a92dc8ae 83751 |
|
24-Aug-1999 |
fielding |
Apache 1.3.9 baseline for the Apache 2.0 repository.
Obtained from: Apache 1.3.9 (minus unused files), tag APACHE_1_3_9
Submitted by: Apache Group |