util_script.c

Checkout Tools
  • last updated 7 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates

Changeset 91887 is being indexed.

Begin to abstract out the underlying transport layer.

The first step is to remove the socket from the conn_rec,

the server now lives in a context that is passed to the

core's input and output filters. This forces us to be very

careful when adding calls that use the socket directly,

because the socket isn't available in most locations.

  1. … 18 more files in changeset.
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

  1. … 10 more files in changeset.
Improve http2env's performance by cutting the work it has to

do.

Submitted by: Brian Pane <bpane@pacbell.net>

  1. … 1 more file in changeset.

PATHEXT is a critial Win32 cmd.exe variable that declares _which_ extensions

are given command-name status (such as .exe;.bat;.com;.cmd etc.)

This patch is insufficient (highlights an existing problem) for OS2 and

Netware, especially, and any other platform with odd native requirements

for the PATH_TRANSLATED variable (where it should look like a filesystem

entity for non-unixish cgi's.)

Back out the 1.45 change to util_script.c. This change made

us set the environment variable REQUEST_URI to the redirected

URI, instead of the originally requested URI.

PR: 7580

Submitted by: Taketo Kabe <kabe@sra-tohoku.co.jp>

  1. … 1 more file in changeset.

Why two ifdef blocks? This is simpler to read

Change over to apr_strfsize() for apr_off_t file size formatting.

  1. … 4 more files in changeset.
Another of the long term issues cleared up. BeOS can now run

perl and other CGI's that rely on .so's for their operation.

use apr-util's apr_date_parse_http() instead of the to-be-removed

ap_parseHTTPdate()

(proxy needs to make similar changes)

build changes forthcoming...

Submitted by: Justin Erenkrantz

  1. … 2 more files in changeset.
surprised -Wall does not complain, but ap_scan_script_header_err_core() should explicitly return an int

tweak ap_get_remote_host() so that the caller can find out if she got

back an IP address

mod_access needed to know this, but the old code didn't handle IPv6

  1. … 8 more files in changeset.
Update copyright to 2001

  1. … 205 more files in changeset.
Clean up some of the includes:

- explicitly include apr_lib.h since ap_config.h doesn't

- use apr_want.h where possible

- use APR_HAVE_ where possible

- remove some unneeded includes

  1. … 26 more files in changeset.
renaming various functions for consistency sake

see: http://apr.apache.org/~dougm/apr_rename.pl

PR:

Obtained from:

Submitted by:

Reviewed by:

  1. … 94 more files in changeset.
Switch to the APR-provided APR_CHARSET_EBCDIC feature test macro.

  1. … 18 more files in changeset.
Force all Apache functions to be linked into the executable, whether they

are used or not. This uses the same mechanism that is used for APR

and APR-util. This may not be the correct solution, but it works, and that

is what I really care about. This also renames CHARSET_EBCDIC to

AP_CHARSET_EBCDIC. This is for namespace correctness, but it also makes

the exports script a bit easier.

  1. … 24 more files in changeset.
Allow modules to specify the first module for a sub-request. This allows

modules to not have to muck with the output_filter after it creates the

sub-request. Without this change, modules that create a sub-request have

to manually edit the output_filters, and therefore skip the sub-request

output_filter. If they skip the sub-request output_filter, then we end

up sending multiple EOS buckets to the core_output_filter.

  1. … 6 more files in changeset.
updates to changed interfaces to apr_set_port(), apr_get_port(),

apr_set_ipaddr(), and apr_get_ipaddr()

  1. … 6 more files in changeset.
This adds the APR_LOCAL/APR_REMOTE to APR and changes the apr_get/set_port

functions to use it. This is onyl the start and I'll pause a while before

I continue in case people really hate this. The patch can be backed out and

all evidence will be removed, but I think this makes maintaining/developing

the code easier in the long term.

  1. … 4 more files in changeset.
Start of moving to apr_port_t in the server code. This will probably the first

of a few...

  1. … 9 more files in changeset.
We have functions that allow us to get the ports from the sockets, so use them

here.

Remove original_uri. This is the same as r->unparsed_uri

Reviewed by: Roy Fielding and Tony Finch

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.

  1. … 102 more files in changeset.
These functions aren't used by any module, and they don't make any sense

with the bucket design, so they need to go away.

  1. … 1 more file in changeset.
Clean up some const-ness warnings in getsfunc_STRING().

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:

  1. … 3 more files in changeset.
Fix some problems with the apr conversion so that APACHE_XLATE builds work

again.

  1. … 9 more files in changeset.

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:

  1. … 73 more files in changeset.
prefix libapr functions and types with apr_

  1. … 143 more files in changeset.