7a1dee936d2bd3e4e70dd8a6e0090f8582ee2a8b 1657897 |
|
06-Feb-2015 |
ylavic |
mod_proxy(es): Avoid error response/document handling by the core if some
input filter already did it while reading client's payload.
When an input filter returns AP_FILTER_ERROR, it has already called ap_die()
or at least already responded to the client.
Here we don't want to lose AP_FILTER_ERROR when returning from proxy handlers,
so we use ap_map_http_request_error() to forward any AP_FILTER_ERROR to
ap_die() which knows whether a response needs to be completed or not.
Before this commit, returning an HTTP error code in this case caused a double
response to be generated.
Depends on r1657881 to preserve r->status (for logging) when nothing is to be
done by ap_die() when handling AP_FILTER_ERROR. |
adb048c003138cd8e41b050734b804cdbda8d56c 1650309 |
|
08-Jan-2015 |
covener |
save some bytes per Christophe's review. |
b61433b36ad19a890a7dfb25791b7b74b9fe8885 1648557 |
|
30-Dec-2014 |
mrumph |
Fix some spelling errors in mod_proxy_fcgi comments. |
5e50f2a09fcbd826d257254d65f0654abac28134 1647035 |
|
20-Dec-2014 |
covener |
provide alternative PATH_INFO calculation options for proxy_fcgi.
PR 55329 |
4472df9a373740420f81c4c14a331b54d2f91603 1647005 |
|
20-Dec-2014 |
covener |
Allow (a hokey) opt-in to connection reuse for mod_proxy_fcgi + TCP.
Connection reuse has been disabled since r1032345 at the end of
2011.
Attempt to reverse the polarity of the connection reuse doc which
has been wrong for a long time. |
54188d8efa699b35cd17a436f8e7f000599e2302 1646724 |
|
19-Dec-2014 |
covener |
tweak SCRIPT_FILENAME passed to fastcgi backends when a balancer is used. |
1166f87f5795e80e276e01d3dfcb669671e1483c 1644031 |
|
09-Dec-2014 |
jkaluza |
* mod_proxy_fcgi: Follow up to r1640495. Ignore body data from backend
for 304 responses also when read with the header. |
b09ef7a89d11e488d5ef5e7e2f2d4b6f6d96e015 1643672 |
|
07-Dec-2014 |
covener |
dump fcgi headers with trace8 instead of debug+compile-time flag. |
c6a77ae0be362a7e88b059b7d9814de5ce3e5238 1640495 |
|
19-Nov-2014 |
jkaluza |
* mod_proxy_fcgi: Ignore body data from backend for 304 responses. PR 57198. |
0d0d3ba82362da5eed586c40333c03078cb34571 1640040 |
|
16-Nov-2014 |
ylavic |
mod_proxy_fcgi, mod_authnz_fcgi: stop reading the response and issue an error
when parsing or forwarding the response fails. |
49487586e883b50aa47a1da04f1d7ccb78e70b7d 1640036 |
|
16-Nov-2014 |
ylavic |
mod_proxy_fcgi: SECURITY: CVE-2014-3583 (cve.mitre.org)
Fix a potential crash with response headers' size above 8K.
The code changes to mod_authnz_fcgi keep the handle_headers()
function in sync between the two modules. mod_authnz_fcgi
does not have this issue because it allocated a separate byte
for terminating '\0'. |
504c4aa29f414902675559aa95d99b8707e03383 1640034 |
|
16-Nov-2014 |
ylavic |
Revert r1638818, r1639812, r1639717 and r1639814 for new staging. |
308db5a40492e950ded9e2749de2954577523060 1639812 |
|
15-Nov-2014 |
ylavic |
mod_proxy_fcgi: follow up to r1638818.
Let ap_scan_script_header*() validate the headers. |
90dcd490a4381740be81af1b387f7518247c8192 1638818 |
|
12-Nov-2014 |
ylavic |
mod_proxy_fcgi: CVE-2014-3583: Fix a potential crash with response headers'
size above 8K. |
599e58561f7a206f05442a72d99337657e9097e7 1618401 |
|
16-Aug-2014 |
trawick |
mod_proxy_fcgi: Fix faulty logging of large amounts of stderr from the
application.
PR: 56858
Submitted by: Manuel Mausz <manuel-asf mausz.at>
Reviewed by: trawick |
b2c17021012bc4f7cd8e374c6bd72b926737320f 1612068 |
|
20-Jul-2014 |
jailletc36 |
Add missing APLOGNO.
Refactor some lines to keep APLOGNO on the same line as ap_log_error, when applicable.
Split lines longer than 80.
Improve alignment. |
e041db9f20d08545ca1bf22f4e8b4a1c07508889 1603122 |
|
17-Jun-2014 |
ylavic |
mod_proxy_fcgi: follow up to r1592032.
Also break the outer loop when "sending stdin" fails. |
7dca5043fdb341d87aa231bacaf477856d2eae82 1603029 |
|
17-Jun-2014 |
trawick |
Reindent after small fix in r1603027 |
f0aa8ba698f03f0856632bd908ced138b6a179a2 1603027 |
|
17-Jun-2014 |
trawick |
Fix bug introduced in r1591508 which resulted in the final empty
FCGI_STDIN not being sent. Interaction with latest uWSGI (and
probably other protocol implementations) breaks without this. |
3de33669d2bd0862b25ac686f8f154c25b775ebb 1592037 |
|
02-May-2014 |
trawick |
mod_proxy_fcgi: Fix occasional high CPU when handling request bodies. |
4423d617369d946704d5216ef485107d24e63dba 1592032 |
|
02-May-2014 |
trawick |
better diagnostics for failures during dispatch() |
504e825ce06ccae8d0a3640a52a79f6a3b38ac04 1591508 |
|
01-May-2014 |
trawick |
mod_proxy_fcgi: Support iobuffersize parameter. |
94fc69d9d52e4f77296c5495bb065e1edb51ea77 1591472 |
|
30-Apr-2014 |
trawick |
Axe unnecessary memset() calls and allocating an extra
byte in an I/O buffer for '\0', which hasn't been needed
since a strstr("\r\n\r\n") was removed in r371428. |
41daa98ace7d03edfbf9ba2ccddb95656cdad015 1590437 |
|
27-Apr-2014 |
trawick |
mod_proxy_fcgi: Don't segfault when failing to connect to the backend. |
7b82bb697a4957f302e43df708dda478dea80e05 1585824 |
|
08-Apr-2014 |
trawick |
mod_proxy_fcgi: Fix sending of response without some HTTP headers
that might be set by filters.
The problem occurs when no body bytes were read while reading the
response headers, resulting in an empty brigade being sent down
the filter stack. One particualr filter that mishandles the empty
initial brigade is mod_deflate. It neglects to add to the response
header fields.
PR: 55558
Submitted by: Jim Riggs <jim riggs.me>
Reviewed by: trawick |
d1d392803d0049f8fe7b33f79a38e38fc5d9411e 1564756 |
|
05-Feb-2014 |
trawick |
mod_proxy_fcgi: Fix error message when an unexpected protocol version
number is received from the application.
PR: 56110 |
63b4d380728397be955beae19d9ecccf00d438a8 1542562 |
|
16-Nov-2013 |
jim |
We were not being consistent between http and others
if we added the default port or not during the canonizing
phase... Baseline the http method (don't add unless the
port provided isn't the default). |
33124689065ade0dfc8c54d8ebb734f9439cb89b 1526189 |
|
25-Sep-2013 |
trawick |
mod_proxy: Add ap_connection_reusable() for checking if a connection
is reusable as of this point in processing.
mod_proxy_fcgi uses the new API to determine if FCGI_CONN_CLOSE
should be enabled, but that doesn't change existing behavior
since the connection is currently marked for closure elsewhere
in the module. |
67ff8463804cb1a618483f899a9c767d3338c145 1525281 |
|
21-Sep-2013 |
trawick |
Use ap_log_rdata() to dump the FastCGI header, axing a bunch
of custom data dumping code. |
8c4967445b49a1612b3f98c1dada65e597ecfe26 1525280 |
|
21-Sep-2013 |
trawick |
Borrow a fix from mod_authnz_fcgi:
mod_proxy_fcgi: Handle reading protocol data that is split between
packets. |
61fefed8ce5211c31b44f3a38a6e76ca055e5780 1525276 |
|
21-Sep-2013 |
trawick |
Bring some envvar flexibility from mod_authnz_fcgi to mod_proxy_fcgi:
mod_proxy_fcgi: Remove 64K limit on encoded length of all envvars.
An individual envvar with an encoded length of more than 16K will be
omitted. |
d56eea6e79e27ffd62f45d12080599db985370b1 1524368 |
|
18-Sep-2013 |
jkaluza |
Use apr_socket_timeout_get instead of hard-coded 30 seconds timeout. |
81534ba62b45991eb05893f8d1878206f661ca0a 1523281 |
|
14-Sep-2013 |
trawick |
Switch from private FastCGI protocol handling to util_fcgi API. |
b75a84a926094d1af4588461c110a1f044677bc9 1500423 |
|
07-Jul-2013 |
fuankg |
Fix some compiler warnings. |
38eb64d29a17648e108852de42f23335aecaa8f8 1311172 |
|
09-Apr-2012 |
sf |
If there is an error reading the headers from the backend,
send an error to the client |
63f0a4cce2c24181e97940eb9d61b75591ee6ed8 1242351 |
|
09-Feb-2012 |
jim |
Handle cases, esp when using mod_proxy_fcgi, when we do not
want SCRIPT_FILENAME to include the query string. |
185aa71728867671e105178b4c66fbc22b65ae26 1209766 |
|
03-Dec-2011 |
sf |
Add lots of unique tags to error log messages |
994ced9dca1b824d03a44187f09d264215cd490c 1203859 |
|
18-Nov-2011 |
sf |
great proxy logging cleanup:
* remove "proxy:", "FCGI", etc. prefixes and pid which are now
included in the error log format
* propagate frontend request's logconfig to backend request
* use ap_log_rerror where possible
* remove obsolete APLOG_NOERRNO |
7180caabaf4b042d5c5d672185cc1e85a436e043 1199435 |
|
08-Nov-2011 |
rjung |
Silence compiler warning about signedness differences. |
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 |
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. |
afee7998d5045107a7673f09bc3448a5dc1b6612 1087863 |
|
01-Apr-2011 |
jim |
*) mod_proxy_fcgi: Add support for 'ProxyErrorOverride on' PR 50913.
[Mark Montague <mark catseye.org>, Jim Jagielski] |
2935c06515b172db47bc622218179a22fa45437e 1078089 |
|
04-Mar-2011 |
jim |
Fix/workaround for BUGZ PR 50851.
By default, mod_proxy_fcgi with not create PATH_INFO, unless
specifically told to. |
23a31b10f869a72c9197b5f153f4f3e1a4c68f28 1058623 |
|
13-Jan-2011 |
jim |
More movement to shared stuff... |
86cd6420cad2ad278c473be55af89675569e22ff 1032345 |
|
07-Nov-2010 |
trawick |
mark connection for close after the return from
ap_proxy_determine_connection()
before this revision: if there was an existing connection,
ap_proxy_determine_connection() would close it but then clear
the close flag, so it didn't get closed by
ap_proxy_release_connection()
thus, if this child process doesn't use the connection for a
while, the application could be stuck in read() for the same
while
after: ap_proxy_release_connection() will close it after the
request completes |
a9af9ec745b7a9e30d56699c382a6868c4e5b4c5 1032266 |
|
07-Nov-2010 |
trawick |
avoid duplicate end-of-stdin header
avoid passing {iov_base = &buffer, iov_len=0} to writev() when
there is no stdin data |
2df7fa1d2d2ec5a2670ce114883e42d4ef010e3a 1031613 |
|
05-Nov-2010 |
trawick |
repeat apr_poll() while EINTR |
89c7a19f9c47b03f00f622a979490c9bccb2ff03 982016 |
|
03-Aug-2010 |
sf |
- Remove a load of unused variables (or variables that are set but never read).
- Move some declarations into the correct #ifdef scope.
I couldn't compile/test netware, but the changes look obvious enough. |
c6cf638d68b4cfff4f74ebc360abca97ad38cd71 951900 |
|
06-Jun-2010 |
sf |
- Be less verbose at levels INFO and DEBUG in mod_proxy* and mod_ssl
- Add some trace logging to core and http |
36ef8f77bffe75d1aa327882be1b5bdbe2ff567a 951895 |
|
06-Jun-2010 |
sf |
Use the new APLOG_USE_MODULE/AP_DECLARE_MODULE macros everywhere to take
advantage of per-module loglevels |
820e91baab4f9a45001d668698d2fae3501cb4b0 947651 |
|
24-May-2010 |
trawick |
odd assortment of spelling fixes |
7803bba2c2038f4015ad7f774643f0d68759e06d 816361 |
|
17-Sep-2009 |
jim |
use what we know |
bf44cf53f6837079e57ba341150ea7795515bc9b 686786 |
|
18-Aug-2008 |
jim |
Add comment on why the cast is safe and does not result
in lost info. |
aadce390198b8ff56dc1089a7b55f659a65853b5 686785 |
|
18-Aug-2008 |
jim |
We are really looking for the scheme here... so be consistant |
4f6f95ad5bfb217bf0142074be47d05d0962067d 649170 |
|
17-Apr-2008 |
jim |
and make mod_proxy_fcgi also nocanon aware |
5abc21ecd48330b1b91b77420683f4c7c57cde99 590038 |
|
30-Oct-2007 |
jfclere |
Otherwise it doesn't compile on HP-UX when using cc. |
1a4e536ff408d83942c8292b8a5c2afebe10f5df 428152 |
|
02-Aug-2006 |
rpluem |
* Followup patch on r427959:
Also substitute close_on_recycle with close in mod_proxy_fcgi. This makes
mod_proxy_fcgi compile again. |
842ae4bd224140319ae7feec1872b93dfd491143 420983 |
|
11-Jul-2006 |
fielding |
update license header text |
bf66a9853802214f9ab1fa7265551b23c67547d4 408520 |
|
22-May-2006 |
rooneg |
Make the logging in mod_proxy_fcgi more consistent.
* modules/proxy/mod_proxy_fcgi.c
(fcgi_do_request): Log errors as APLOG_ERR.
(proxy_fcgi_handler): Log debug info as APLOG_DEBUG. |
c85015850ed2d0e80b97165ff66b6956f69fa5e2 397968 |
|
28-Apr-2006 |
rooneg |
Fix compile time warnings.
Pointed out by: jorton
* modules/proxy/mod_proxy_fcgi.c
Add include of util_script.h to pick up some function prototypes.
(send_begin_request): Initialize the reserved bytes in the request
body to zero.
(dispatch): Use APR_SIZE_T_FMT instead of %d when logging an apr_size_t. |
05aeb72ad4d3487297de9b6a27e9d61cbd7672a8 396063 |
|
22-Apr-2006 |
rooneg |
Merge the fcgi-proxy-dev branch to trunk, adding a FastCGI back end for
mod_proxy. This log message is just a summary of the changes, for the
full original log messages see r357431:393955 in branches/fcgi-proxy-dev.
* modules/proxy/mod_proxy_fcgi.c: New file, holds the impementation of
our new fcgi backend for mod_proxy.
* modules/proxy/fcgi_protocol.h: New file, holds constants and structures
for the fcgi protocol.
* modules/proxy/mod_proxy_balancer.c
(proxy_balancer_canon): Set up r->path_info, so the PATH_INFO env
variable is correctly passed on to balancer workers.
* modules/proxy/config.m4: Build the new mod_proxy_fcgi module.
* support: Add fcgistarter to svn:ignore.
* support/Makefile.in: Build the new fcgistarter program.
* support/fcgistarter.c: New program, a helper for starting fcgi worker
processes. |