mirror of
https://github.com/apache/httpd.git
synced 2026-10-23 22:49:01 +03:00
Merge r1756038 from trunk:
Fix spelling in comments and text files. No functional change. PR 59990 Submitted by: rjung Reviewed/backported by: jim git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1757669 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
22
CHANGES
22
CHANGES
@@ -204,7 +204,7 @@ Changes with Apache 2.4.20
|
||||
*) mod_proxy_express: Fix possible use of DB handle after close. PR 59230.
|
||||
[Petr <pgajdos suse.cz>]
|
||||
|
||||
*) core/util_script: relax alphanumeric filter of enviroment variable names
|
||||
*) core/util_script: relax alphanumeric filter of environment variable names
|
||||
on Windows to allow '(' and ')' for passing PROGRAMFILES(X86) et.al.
|
||||
unadulterated in 64 bit versions of Windows. PR 46751.
|
||||
[John <john leineweb de>]
|
||||
@@ -481,7 +481,7 @@ Changes with Apache 2.4.18
|
||||
fixes crash on a request that did not produce any response.
|
||||
[Stefan Eissing]
|
||||
|
||||
*) mod_http2: trailers are sent after reponse body if set in request_rec
|
||||
*) mod_http2: trailers are sent after response body if set in request_rec
|
||||
trailers_out before the end-of-request bucket is sent through the
|
||||
output filters. [Stefan Eissing]
|
||||
|
||||
@@ -837,7 +837,7 @@ Changes with Apache 2.4.13 (not released)
|
||||
[Yann Ylavic]
|
||||
|
||||
*) mod_proxy_connect/wstunnel: If both client and backend sides get readable
|
||||
at the same time, don't lose errors occuring while forwarding on the first
|
||||
at the same time, don't lose errors occurring while forwarding on the first
|
||||
side when none occurs next on the other side, and abort. [Yann Ylavic]
|
||||
|
||||
*) mod_rewrite: Improve relative substitutions in per-directory/htaccess
|
||||
@@ -990,7 +990,7 @@ Changes with Apache 2.4.11 (not released)
|
||||
the URL parameter interpolates to an empty string. PR 56603.
|
||||
[<ajprout hotmail.com>]
|
||||
|
||||
*) core: Fix -D[efined] or <Define>[d] variables lifetime accross restarts.
|
||||
*) core: Fix -D[efined] or <Define>[d] variables lifetime across restarts.
|
||||
PR 57328. [Armin Abfalterer <a.abfalterer gmail.com>, Yann Ylavic].
|
||||
|
||||
*) mod_proxy: Preserve original request headers even if they differ
|
||||
@@ -1599,7 +1599,7 @@ Changes with Apache 2.4.7
|
||||
instead of an explicit cn=* filter. [David Hawes <dhawes vt.edu>]
|
||||
|
||||
*) ab: Add wait time, fix processing time, and output write errors only if
|
||||
they occured. [Christophe Jaillet]
|
||||
they occurred. [Christophe Jaillet]
|
||||
|
||||
*) worker MPM: Don't forcibly kill worker threads if the child process is
|
||||
exiting gracefully. [Oracle Corporation]
|
||||
@@ -1612,7 +1612,7 @@ Changes with Apache 2.4.7
|
||||
[Chris Darroch]
|
||||
|
||||
*) ab: Add a new -l parameter in order not to check the length of the responses.
|
||||
This can be usefull with dynamic pages.
|
||||
This can be useful with dynamic pages.
|
||||
PR9945, PR27888, PR42040 [<ccikrs1 cranbrook edu>]
|
||||
|
||||
*) Suppress formatting of startup messages written to the console when
|
||||
@@ -1993,7 +1993,7 @@ Changes with Apache 2.4.5
|
||||
request information to the request_rec structure. [Daniel Gruno]
|
||||
|
||||
*) mod_lua: Add a server scope for Lua states, which creates a pool of
|
||||
states with managable minimum and maximum size. [Daniel Gruno]
|
||||
states with manageable minimum and maximum size. [Daniel Gruno]
|
||||
|
||||
*) mod_lua: Add new directive, LuaMapHandler, for dynamically mapping
|
||||
URIs to Lua scripts and functions using regular expressions.
|
||||
@@ -2046,7 +2046,7 @@ Changes with Apache 2.4.4
|
||||
*) mod_slotmem_shm: Fix mistaken reset of num_free for restored shm.
|
||||
[Jim Jagielski]
|
||||
|
||||
*) mod_proxy: non-existance of byrequests is not an immediate error.
|
||||
*) mod_proxy: non-existence of byrequests is not an immediate error.
|
||||
[Jim Jagielski]
|
||||
|
||||
*) mod_proxy_balancer: Improve output of balancer-manager (re: Drn,
|
||||
@@ -2988,7 +2988,7 @@ Changes with Apache 2.3.14
|
||||
binary needs PCRE. [Rainer Jung]
|
||||
|
||||
*) configure: tolerate dependency checking failures for modules if
|
||||
they have been enabled implicitely. [Rainer Jung]
|
||||
they have been enabled implicitly. [Rainer Jung]
|
||||
|
||||
*) configure: Allow to specify module specific custom linker flags via
|
||||
the MOD_XXX_LDADD variables. [Rainer Jung]
|
||||
@@ -3094,7 +3094,7 @@ Changes with Apache 2.3.13
|
||||
state after a timeout when discarding a request body. PR 51103.
|
||||
[Stefan Fritsch]
|
||||
|
||||
*) core: Add various file existance test operators to ap_expr.
|
||||
*) core: Add various file existence test operators to ap_expr.
|
||||
[Stefan Fritsch]
|
||||
|
||||
*) mod_proxy_express: New mass reverse-proxy switch extension for
|
||||
@@ -4370,7 +4370,7 @@ Changes with Apache 2.3.2
|
||||
|
||||
*) mod_mime_magic: Fix detection of compressed content. [Rainer Jung]
|
||||
|
||||
*) mod_negotiation: Escape pathes of filenames in 406 responses to avoid
|
||||
*) mod_negotiation: Escape paths of filenames in 406 responses to avoid
|
||||
HTML injections and HTTP response splitting. PR 46837.
|
||||
[Geoff Keating <geoffk apple.com>]
|
||||
|
||||
|
||||
16
STATUS
16
STATUS
@@ -117,16 +117,6 @@ RELEASE SHOWSTOPPERS:
|
||||
PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
|
||||
[ start all new proposals below, under PATCHES PROPOSED. ]
|
||||
|
||||
*) Typo fixes in comments and text files. PR 59990.
|
||||
Trunk version of patch:
|
||||
http://svn.apache.org/r1756038
|
||||
Backport version for 2.4.x of patch:
|
||||
http://home.apache.org/~rjung/patches/httpd-2.4.x-typo-PR59990.patch
|
||||
(trunk version of patch merge plus CHANGES plus STATUS
|
||||
plus one hunk in modules/aaa/mod_auth_digest.c)
|
||||
+1: rjung, ylavic, jchampion
|
||||
jchampion: IMO, spell-checking STATUS is probably unnecessary.
|
||||
|
||||
*) mod_proxy_fcgi: read the whole FCGI response even when the content has
|
||||
not been modified (HTTP 304) to avoid subsequent bogus reads and
|
||||
confusing error messages logged.
|
||||
@@ -331,7 +321,7 @@ PATCHES/ISSUES THAT ARE STALLED
|
||||
+1: jkaluza
|
||||
+1: covener w/ doc or code to fix syntax (providername:providerarg not supported like syslog or socacheproviders,
|
||||
needs 2 args which is not valid in ErrorLog manual)
|
||||
trawick: nit: fix "writing" in "/* NULL if we are writting to syslog */"
|
||||
trawick: nit: fix "writing" in "/* NULL if we are writing to syslog */"
|
||||
(sorry, haven't finished reviewing completely)
|
||||
jim: What is the status of this??
|
||||
|
||||
@@ -392,7 +382,7 @@ PATCHES/ISSUES THAT ARE STALLED
|
||||
+1: jkaluza
|
||||
|
||||
* mod_proxy: Ensure network errors detected by the proxy are returned as
|
||||
504 Gateway Timout as opposed to 502 Bad Gateway
|
||||
504 Gateway Timeout as opposed to 502 Bad Gateway
|
||||
trunk patch: https://svn.apache.org/viewvc?view=revision&revision=1480058
|
||||
2.4.x patch: trunk patch works modulo CHANGES
|
||||
+1:
|
||||
@@ -439,7 +429,7 @@ PATCHES/ISSUES THAT ARE STALLED
|
||||
of described indirectly in a sample?
|
||||
Why are these new samples added to the install without three
|
||||
votes? (I didn't veto it; put your name next to the two
|
||||
existing ones and I'll be satisified that enough people
|
||||
existing ones and I'll be satisfied that enough people
|
||||
considered this addition as an appropriate solution for a
|
||||
real httpd usability problem.)
|
||||
wrowe: I'd agree with trawick, and suggest that these scripts can begin
|
||||
|
||||
@@ -50,7 +50,7 @@ enum cmd_how {
|
||||
RAW_ARGS, /**< cmd_func parses command line itself */
|
||||
TAKE1, /**< one argument only */
|
||||
TAKE2, /**< two arguments only */
|
||||
ITERATE, /**< one argument, occuring multiple times
|
||||
ITERATE, /**< one argument, occurring multiple times
|
||||
* (e.g., IndexIgnore)
|
||||
*/
|
||||
ITERATE2, /**< two arguments, 2nd occurs multiple times
|
||||
@@ -812,7 +812,7 @@ AP_DECLARE(apr_status_t) ap_cfg_getc(char *ch, ap_configfile_t *cfp);
|
||||
/**
|
||||
* Detach from open ap_configfile_t, calling the close handler
|
||||
* @param cfp The file to close
|
||||
* @return 1 on sucess, 0 on failure
|
||||
* @return 1 on success, 0 on failure
|
||||
*/
|
||||
AP_DECLARE(int) ap_cfg_closefile(ap_configfile_t *cfp);
|
||||
|
||||
|
||||
@@ -141,7 +141,7 @@ extern "C" {
|
||||
* Constant to store module_index for the current file.
|
||||
* Objects with static storage duration are set to NULL if not
|
||||
* initialized explicitly. This means that if aplog_module_index
|
||||
* is not initalized using the ::APLOG_USE_MODULE or the
|
||||
* is not initialized using the ::APLOG_USE_MODULE or the
|
||||
* ::AP_DECLARE_MODULE macro, we can safely fall back to
|
||||
* use ::APLOG_NO_MODULE. This variable will usually be optimized away.
|
||||
*/
|
||||
|
||||
@@ -218,7 +218,7 @@ AP_DECLARE(void) ap_clear_auth_internal(void);
|
||||
* Determine whether access control hooks will be run for all internal
|
||||
* requests with URIs distinct from that of the initial request, or only
|
||||
* those for which different configurations apply than those which applied
|
||||
* to the initial request. To accomodate legacy external modules which
|
||||
* to the initial request. To accommodate legacy external modules which
|
||||
* may expect access control hooks to be run for all internal requests
|
||||
* with distinct URIs, this is the default behaviour unless all access
|
||||
* control hooks and authentication and authorization providers are
|
||||
|
||||
@@ -309,7 +309,7 @@ extern "C" {
|
||||
|
||||
/**
|
||||
* APR_HAS_LARGE_FILES introduces the problem of spliting sendfile into
|
||||
* mutiple buckets, no greater than MAX(apr_size_t), and more granular
|
||||
* multiple buckets, no greater than MAX(apr_size_t), and more granular
|
||||
* than that in case the brigade code/filters attempt to read it directly.
|
||||
* ### 16mb is an invention, no idea if it is reasonable.
|
||||
*/
|
||||
@@ -354,7 +354,7 @@ extern "C" {
|
||||
* use by modules. The difference between #AP_DECLARE and
|
||||
* #AP_DECLARE_NONSTD is that the latter is required for any functions
|
||||
* which use varargs or are used via indirect function call. This
|
||||
* is to accomodate the two calling conventions in windows dlls.
|
||||
* is to accommodate the two calling conventions in windows dlls.
|
||||
*/
|
||||
# define AP_DECLARE_NONSTD(type) type
|
||||
#endif
|
||||
|
||||
@@ -254,7 +254,7 @@ APR_DECLARE_OPTIONAL_FN(util_ldap_connection_t *,uldap_connection_find,(request_
|
||||
* @param dn The first DN to compare.
|
||||
* @param reqdn The DN to compare the first DN to.
|
||||
* @param compare_dn_on_server Flag to determine whether the DNs should be checked using
|
||||
* LDAP calls or with a direct string comparision. A direct
|
||||
* LDAP calls or with a direct string comparison. A direct
|
||||
* string comparison is faster, but not as accurate - false
|
||||
* negative comparisons are possible.
|
||||
* @tip Two DNs can be equal and still fail a string comparison. Eg "dc=example,dc=com"
|
||||
|
||||
@@ -22,7 +22,7 @@ endif
|
||||
endif
|
||||
endif
|
||||
|
||||
# If USE_STDSOCKETS is defined we allways build mod_ssl
|
||||
# If USE_STDSOCKETS is defined we always build mod_ssl
|
||||
ifdef USE_STDSOCKETS
|
||||
WITH_SSL = 1
|
||||
endif
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
* This module makes it easy to restrict what HTTP methods can be ran against
|
||||
* a server.
|
||||
*
|
||||
* It provides one comand:
|
||||
* It provides one command:
|
||||
* AllowMethods
|
||||
* This command takes a list of HTTP methods to allow.
|
||||
*
|
||||
|
||||
@@ -381,7 +381,7 @@ static int authenticate_basic_user(request_rec *r)
|
||||
|
||||
apr_table_unset(r->notes, AUTHN_PROVIDER_NAME_NOTE);
|
||||
|
||||
/* Something occured. Stop checking. */
|
||||
/* Something occurred. Stop checking. */
|
||||
if (auth_result != AUTH_USER_NOT_FOUND) {
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -1404,7 +1404,7 @@ static authn_status get_hash(request_rec *r, const char *user,
|
||||
|
||||
apr_table_unset(r->notes, AUTHN_PROVIDER_NAME_NOTE);
|
||||
|
||||
/* Something occured. Stop checking. */
|
||||
/* Something occurred. Stop checking. */
|
||||
if (auth_result != AUTH_USER_NOT_FOUND) {
|
||||
break;
|
||||
}
|
||||
@@ -1746,7 +1746,7 @@ static int authenticate_digest_user(request_rec *r)
|
||||
* works out ok, since we can hash the header and get the same
|
||||
* result. however, the uri from the request line won't match
|
||||
* the uri Authorization component since the header lacks the
|
||||
* query string, leaving us incompatable with a (broken) MSIE.
|
||||
* query string, leaving us incompatible with a (broken) MSIE.
|
||||
*
|
||||
* the workaround is to fake a query string match if in the proper
|
||||
* environment - BrowserMatch MSIE, for example. the cool thing
|
||||
|
||||
@@ -798,7 +798,7 @@ static int check_authn(request_rec * r, const char *sent_user, const char *sent_
|
||||
|
||||
apr_table_unset(r->notes, AUTHN_PROVIDER_NAME_NOTE);
|
||||
|
||||
/* Something occured. Stop checking. */
|
||||
/* Something occurred. Stop checking. */
|
||||
if (auth_result != AUTH_USER_NOT_FOUND) {
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -976,7 +976,7 @@ static const char *all_parse_config(cmd_parms *cmd, const char *require_line,
|
||||
/*
|
||||
* If the argument to the 'all' provider is 'granted' then just let
|
||||
* everybody in. This would be equivalent to the previous syntax of
|
||||
* 'allow from all'. If the argument is 'denied' we reject everbody,
|
||||
* 'allow from all'. If the argument is 'denied' we reject everybody,
|
||||
* which is equivalent to 'deny from all'.
|
||||
*/
|
||||
if (strcasecmp(require_line, "granted") == 0) {
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
*
|
||||
* AuthGroupFile standard /path/to/file
|
||||
*
|
||||
* and the presense of a
|
||||
* and the presence of a
|
||||
*
|
||||
* require group <list-of-groups>
|
||||
*
|
||||
|
||||
@@ -778,7 +778,7 @@ static int nwssl_post_config(apr_pool_t *pconf, apr_pool_t *plog,
|
||||
|
||||
for (sl = ap_seclisteners; sl != NULL; sl = sl->next) {
|
||||
/* If we find a pre-existing listen socket and it has already been
|
||||
created, then no neeed to go any further, just reuse it. */
|
||||
created, then no need to go any further, just reuse it. */
|
||||
if (((sl->fd = find_secure_listener(sl)) >= 0) && (sl->used)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
* It is a complete implementation of the ISAPI 2.0 specification,
|
||||
* except for "Microsoft extensions" to the API which provide
|
||||
* asynchronous I/O. It is further extended to include additional
|
||||
* "Microsoft extentions" through IIS 5.0, with some deficiencies
|
||||
* "Microsoft extensions" through IIS 5.0, with some deficiencies
|
||||
* where one-to-one mappings don't exist.
|
||||
*
|
||||
* Refer to /manual/mod/mod_isapi.html for additional details on
|
||||
@@ -152,7 +152,7 @@ static const char *isapi_cmd_cachefile(cmd_parms *cmd, void *dummy,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Load the extention as cached (with null request_rec) */
|
||||
/* Load the extension as cached (with null request_rec) */
|
||||
rv = isapi_lookup(cmd->pool, cmd->server, NULL, fspec, &isa);
|
||||
if (rv != APR_SUCCESS) {
|
||||
ap_log_error(APLOG_MARK, APLOG_WARNING, rv, cmd->server, APLOGNO(02106)
|
||||
@@ -753,7 +753,7 @@ static apr_ssize_t send_response_header(isapi_cid *cid,
|
||||
/* Well... either there is no dwHttpStatusCode or it's HTTP_OK.
|
||||
* In any case, we don't have a good status to return yet...
|
||||
* Perhaps the one we came in with will be better. Let's use it,
|
||||
* if we were given one (note this is a pendantic case, it would
|
||||
* if we were given one (note this is a pedantic case, it would
|
||||
* normally be covered above unless the scan script code unset
|
||||
* the r->status). Should there be a check here as to whether
|
||||
* we are setting a valid response code?
|
||||
|
||||
@@ -136,7 +136,7 @@ typedef struct HSE_SEND_HEADER_EX_INFO {
|
||||
#define HSE_IO_NODELAY 4096
|
||||
|
||||
/* The Completion function prototype. This callback may be fixed with
|
||||
* the HSE_REQ_IO_COMPLETION ServerSupportFunction call, or overriden
|
||||
* the HSE_REQ_IO_COMPLETION ServerSupportFunction call, or overridden
|
||||
* for the HSE_REQ_TRANSMIT_FILE call.
|
||||
*/
|
||||
typedef void (APR_THREAD_FUNC *PFN_HSE_IO_COMPLETION)
|
||||
|
||||
2
modules/cache/mod_cache.c
vendored
2
modules/cache/mod_cache.c
vendored
@@ -1277,7 +1277,7 @@ static apr_status_t cache_save_filter(ap_filter_t *f, apr_bucket_brigade *in)
|
||||
|
||||
/* It's safe to cache the response.
|
||||
*
|
||||
* There are two possiblities at this point:
|
||||
* There are two possibilities at this point:
|
||||
* - cache->handle == NULL. In this case there is no previously
|
||||
* cached entity anywhere on the system. We must create a brand
|
||||
* new entity and store the response in it.
|
||||
|
||||
@@ -14,7 +14,7 @@ Consuming:
|
||||
Every 1 second, this module generates a single multicast UDP packet,
|
||||
containing the number of busy and idle workers.
|
||||
|
||||
The packet is a simple ASCII format, similiar to GET query parameters in UDP.
|
||||
The packet is a simple ASCII format, similar to GET query parameters in UDP.
|
||||
|
||||
An Example packet:
|
||||
v=1&ready=75&busy=0
|
||||
|
||||
@@ -377,7 +377,7 @@ static char *substitute(char *buf,
|
||||
}
|
||||
|
||||
/*
|
||||
find first occurence of args in buf.
|
||||
find first occurrence of args in buf.
|
||||
in case of conflict, the LONGEST argument is kept. (could be the FIRST?).
|
||||
returns the pointer and the whichone found, or NULL.
|
||||
*/
|
||||
@@ -464,7 +464,7 @@ static const char *process_content(apr_pool_t * pool,
|
||||
/* for each line of the macro body */
|
||||
for (i = 0; i < contents->nelts; i++) {
|
||||
const char *errmsg;
|
||||
/* copy the line and subtitute macro parameters */
|
||||
/* copy the line and substitute macro parameters */
|
||||
strncpy(line, ((char **) contents->elts)[i], MAX_STRING_LEN - 1);
|
||||
errmsg = substitute_macro_args(line, MAX_STRING_LEN,
|
||||
macro, replacements, used);
|
||||
@@ -916,7 +916,7 @@ static int macro_pre_config(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *pte
|
||||
/*
|
||||
macro module commands.
|
||||
configuration file macro stuff
|
||||
they are processed immediatly when found, hence the EXEC_ON_READ.
|
||||
they are processed immediately when found, hence the EXEC_ON_READ.
|
||||
*/
|
||||
static const command_rec macro_cmds[] = {
|
||||
AP_INIT_RAW_ARGS(BEGIN_MACRO, macro_section, NULL, EXEC_ON_READ | OR_ALL,
|
||||
|
||||
@@ -193,7 +193,7 @@ static const char *load_module(cmd_parms *cmd, void *dummy,
|
||||
const char *error;
|
||||
|
||||
/* we need to setup this value for dummy to make sure that we don't try
|
||||
* to add a non-existant tree into the build when we return to
|
||||
* to add a non-existent tree into the build when we return to
|
||||
* execute_now.
|
||||
*/
|
||||
*(ap_directive_t **)dummy = NULL;
|
||||
@@ -321,7 +321,7 @@ static const char *load_module(cmd_parms *cmd, void *dummy,
|
||||
|
||||
/*
|
||||
* This implements the LoadFile directive and loads an arbitrary
|
||||
* shared object file into the adress space of the server process.
|
||||
* shared object file into the address space of the server process.
|
||||
*/
|
||||
|
||||
static const char *load_file(cmd_parms *cmd, void *dummy, const char *filename)
|
||||
|
||||
@@ -437,7 +437,7 @@ typedef struct dav_locktoken dav_locktoken;
|
||||
** the sub-pools are a bit more general and heavyweight than these buffers.
|
||||
*/
|
||||
|
||||
/* buffer for reuse; can grow to accomodate needed size */
|
||||
/* buffer for reuse; can grow to accommodate needed size */
|
||||
typedef struct
|
||||
{
|
||||
apr_size_t alloc_len; /* how much has been allocated */
|
||||
@@ -455,7 +455,7 @@ DAV_DECLARE(void) dav_set_bufsize(apr_pool_t *p, dav_buffer *pbuf,
|
||||
DAV_DECLARE(void) dav_buffer_init(apr_pool_t *p, dav_buffer *pbuf,
|
||||
const char *str);
|
||||
|
||||
/* check that the buffer can accomodate <extra_needed> more bytes */
|
||||
/* check that the buffer can accommodate <extra_needed> more bytes */
|
||||
DAV_DECLARE(void) dav_check_bufsize(apr_pool_t *p, dav_buffer *pbuf,
|
||||
apr_size_t extra_needed);
|
||||
|
||||
@@ -921,7 +921,7 @@ struct dav_hooks_liveprop
|
||||
**
|
||||
** This structure is used as a standard way to determine if a particular
|
||||
** property is a live property. Its use is not part of the mandated liveprop
|
||||
** interface, but can be used by liveprop providers in conjuction with the
|
||||
** interface, but can be used by liveprop providers in conjunction with the
|
||||
** utility routines below.
|
||||
**
|
||||
** spec->name == NULL is the defined end-sentinel for a list of specs.
|
||||
@@ -2368,7 +2368,7 @@ struct dav_hooks_vsn
|
||||
** exist. Any <DAV:mkworkspace> element is passed to the provider
|
||||
** in the "doc" structure; it may be empty.
|
||||
**
|
||||
** If workspace creation is succesful, the state of the resource
|
||||
** If workspace creation is successful, the state of the resource
|
||||
** object is updated appropriately.
|
||||
**
|
||||
** This hook is optional; if the provider does not support workspaces,
|
||||
@@ -2391,7 +2391,7 @@ struct dav_hooks_vsn
|
||||
** Create an activity resource. The resource must not already
|
||||
** exist.
|
||||
**
|
||||
** If activity creation is succesful, the state of the resource
|
||||
** If activity creation is successful, the state of the resource
|
||||
** object is updated appropriately.
|
||||
**
|
||||
** This hook is optional; if the provider does not support activities,
|
||||
|
||||
@@ -428,7 +428,7 @@ DAV_DECLARE(void) dav_xmlns_add(dav_xmlns_info *xi,
|
||||
apr_hash_set(xi->prefix_uri, prefix, APR_HASH_KEY_STRING, uri);
|
||||
|
||||
/* note: this may overwrite an existing URI->prefix mapping, but it
|
||||
doesn't matter -- any prefix is usuable to specify the URI. */
|
||||
doesn't matter -- any prefix is usable to specify the URI. */
|
||||
apr_hash_set(xi->uri_prefix, uri, APR_HASH_KEY_STRING, prefix);
|
||||
}
|
||||
|
||||
@@ -587,7 +587,7 @@ static dav_error * dav_add_if_state(apr_pool_t *p, dav_if_header *ih,
|
||||
}
|
||||
|
||||
/* fetch_next_token returns the substring from str+1
|
||||
* to the next occurence of char term, or \0, whichever
|
||||
* to the next occurrence of char term, or \0, whichever
|
||||
* occurs first. Leading whitespace is ignored.
|
||||
*/
|
||||
static char *dav_fetch_next_token(char **str, char term)
|
||||
|
||||
@@ -32,7 +32,7 @@ For windows, the process is slightly different;
|
||||
|
||||
A. copy modules\examples\mod_example_hooks.c modules\examples\mod_myexample.c
|
||||
B. copy modules\examples\mod_example_hooks.dsp modules\examples\mod_myexample.dsp
|
||||
C. replace the occurances of 'example_hooks' with your module name.
|
||||
C. replace the occurrences of 'example_hooks' with your module name.
|
||||
D. add the new .dsp to your Apache.dsw workspace, with dependencies
|
||||
on the libapr, libaprutil and libhttpd projects. With the newer
|
||||
Developer Studio 2002 through 2005, when you add the new .dsp
|
||||
|
||||
@@ -66,7 +66,7 @@ static const char *set_keep_alive_timeout(cmd_parms *cmd, void *dummy,
|
||||
* set for the main server, because if no http_module directive is used
|
||||
* for a vhost, it will inherit the http_srv_cfg from the main server.
|
||||
* However keep_alive_timeout_set helps determine whether the vhost should
|
||||
* use its own configured timeout or the one from the vhost delared first
|
||||
* use its own configured timeout or the one from the vhost declared first
|
||||
* on the same IP:port (ie. c->base_server, and the legacy behaviour).
|
||||
*/
|
||||
if (cmd->server->is_virtual) {
|
||||
|
||||
@@ -1295,7 +1295,7 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_http_header_filter(ap_filter_t *f,
|
||||
}
|
||||
|
||||
/*
|
||||
* Control cachability for non-cachable responses if not already set by
|
||||
* Control cachability for non-cacheable responses if not already set by
|
||||
* some other part of the server configuration.
|
||||
*/
|
||||
if (r->no_cache && !apr_table_get(r->headers_out, "Expires")) {
|
||||
|
||||
@@ -60,7 +60,7 @@ TLS CONFIGURATION
|
||||
|
||||
If you want to use HTTP/2 with a browser, most modern browsers will support
|
||||
it without further configuration. However, browsers so far only support
|
||||
HTTP/2 over TLS and are expecially picky about the certificate and
|
||||
HTTP/2 over TLS and are especially picky about the certificate and
|
||||
encryption ciphers used.
|
||||
|
||||
Server admins may look for up-to-date information about "modern" TLS
|
||||
|
||||
@@ -31,7 +31,7 @@ apr_status_t h2_conn_setup(struct h2_ctx *ctx, conn_rec *c, request_rec *r);
|
||||
/**
|
||||
* Run the HTTP/2 connection in synchronous fashion.
|
||||
* Return when the HTTP/2 session is done
|
||||
* and the connection will close or a fatal error occured.
|
||||
* and the connection will close or a fatal error occurred.
|
||||
*
|
||||
* @param ctx the http2 context to run
|
||||
* @return APR_SUCCESS when session is done.
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#define __mod_h2__h2_h2__
|
||||
|
||||
/**
|
||||
* List of ALPN protocol identifiers that we suport in cleartext
|
||||
* List of ALPN protocol identifiers that we support in cleartext
|
||||
* negotiations. NULL terminated.
|
||||
*/
|
||||
extern const char *h2_clear_protos[];
|
||||
@@ -36,7 +36,7 @@ extern const char *h2_tls_protos[];
|
||||
const char *h2_h2_err_description(unsigned int h2_error);
|
||||
|
||||
/*
|
||||
* One time, post config intialization.
|
||||
* One time, post config initialization.
|
||||
*/
|
||||
apr_status_t h2_h2_init(apr_pool_t *pool, server_rec *s);
|
||||
|
||||
|
||||
@@ -279,7 +279,7 @@ void h2_iq_clear(h2_iqueue *q)
|
||||
void h2_iq_sort(h2_iqueue *q, h2_iq_cmp *cmp, void *ctx)
|
||||
{
|
||||
/* Assume that changes in ordering are minimal. This needs,
|
||||
* best case, q->nelts - 1 comparisions to check that nothing
|
||||
* best case, q->nelts - 1 comparisons to check that nothing
|
||||
* changed.
|
||||
*/
|
||||
if (q->nelts > 0) {
|
||||
|
||||
@@ -561,7 +561,7 @@ static h2_push_diary *diary_create(apr_pool_t *p, h2_push_digest_type dtype,
|
||||
|
||||
diary->NMax = ceil_power_of_2(N);
|
||||
diary->N = diary->NMax;
|
||||
/* the mask we use in value comparision depends on where we got
|
||||
/* the mask we use in value comparison depends on where we got
|
||||
* the values from. If we calculate them ourselves, we can use
|
||||
* the full 64 bits.
|
||||
* If we set the diary via a compressed golomb set, we have less
|
||||
|
||||
@@ -62,7 +62,7 @@ h2_response *h2_response_die(int stream_id, apr_status_t type,
|
||||
h2_response *h2_response_clone(apr_pool_t *pool, h2_response *from);
|
||||
|
||||
/**
|
||||
* Set the trailers in the reponse. Will replace any existing trailers. Will
|
||||
* Set the trailers in the response. Will replace any existing trailers. Will
|
||||
* *not* clone the table.
|
||||
*
|
||||
* @param response the repsone to set the trailers for
|
||||
|
||||
@@ -1582,7 +1582,7 @@ static apr_status_t h2_session_read(h2_session *session, int block)
|
||||
/* successful read, reset our idle timers */
|
||||
rstatus = APR_SUCCESS;
|
||||
if (block) {
|
||||
/* successfull blocked read, try unblocked to
|
||||
/* successful blocked read, try unblocked to
|
||||
* get more. */
|
||||
block = 0;
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
* New incoming HEADER frames are converted into a h2_stream+h2_task instance
|
||||
* that both represent a HTTP/2 stream, but may have separate lifetimes. This
|
||||
* allows h2_task to be scheduled in other threads without semaphores
|
||||
* all over the place. It allows task memory to be freed independant of
|
||||
* all over the place. It allows task memory to be freed independent of
|
||||
* session lifetime and sessions may close down while tasks are still running.
|
||||
*
|
||||
*
|
||||
@@ -100,7 +100,7 @@ typedef struct h2_session {
|
||||
unsigned int flush : 1; /* flushing output necessary */
|
||||
unsigned int have_read : 1; /* session has read client data */
|
||||
unsigned int have_written : 1; /* session did write data to client */
|
||||
apr_interval_time_t wait_us; /* timout during BUSY_WAIT state, micro secs */
|
||||
apr_interval_time_t wait_us; /* timeout during BUSY_WAIT state, micro secs */
|
||||
|
||||
struct h2_push_diary *push_diary; /* remember pushes, avoid duplicates */
|
||||
|
||||
@@ -156,7 +156,7 @@ h2_session *h2_session_rcreate(request_rec *r, struct h2_ctx *ctx,
|
||||
|
||||
/**
|
||||
* Process the given HTTP/2 session until it is ended or a fatal
|
||||
* error occured.
|
||||
* error occurred.
|
||||
*
|
||||
* @param session the sessionm to process
|
||||
*/
|
||||
@@ -175,7 +175,7 @@ apr_status_t h2_session_pre_close(h2_session *session, int async);
|
||||
void h2_session_eoc_callback(h2_session *session);
|
||||
|
||||
/**
|
||||
* Called when a serious error occured and the session needs to terminate
|
||||
* Called when a serious error occurred and the session needs to terminate
|
||||
* without further connection io.
|
||||
* @param session the session to abort
|
||||
* @param reason the apache status that caused the abort
|
||||
|
||||
@@ -162,13 +162,13 @@ void h2_stream_rst(h2_stream *stream, int error_code);
|
||||
|
||||
/**
|
||||
* Schedule the stream for execution. All header information must be
|
||||
* present. Use the given priority comparision callback to determine
|
||||
* present. Use the given priority comparison callback to determine
|
||||
* order in queued streams.
|
||||
*
|
||||
* @param stream the stream to schedule
|
||||
* @param eos != 0 iff no more input will arrive
|
||||
* @param cmp priority comparision
|
||||
* @param ctx context for comparision
|
||||
* @param cmp priority comparison
|
||||
* @param ctx context for comparison
|
||||
*/
|
||||
apr_status_t h2_stream_schedule(h2_stream *stream, int eos, int push_enabled,
|
||||
h2_stream_pri_cmp *cmp, void *ctx);
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#define __mod_h2__h2_switch__
|
||||
|
||||
/*
|
||||
* One time, post config intialization.
|
||||
* One time, post config initialization.
|
||||
*/
|
||||
apr_status_t h2_switch_init(apr_pool_t *pool, server_rec *s);
|
||||
|
||||
|
||||
@@ -365,7 +365,7 @@ do { \
|
||||
|
||||
/**
|
||||
* Transfer buckets from one brigade to another with a limit on the
|
||||
* maximum amount of bytes transfered. Does no setaside magic, lifetime
|
||||
* maximum amount of bytes transferred. Does no setaside magic, lifetime
|
||||
* of brigades must fit.
|
||||
* @param to brigade to transfer buckets to
|
||||
* @param from brigades to remove buckets from
|
||||
|
||||
@@ -497,7 +497,7 @@ void *util_ald_cache_insert(util_ald_cache_t *cache, void *payload)
|
||||
}
|
||||
}
|
||||
|
||||
/* Take a copy of the payload before proceeeding. */
|
||||
/* Take a copy of the payload before proceeding. */
|
||||
tmp_payload = (*cache->copy)(cache, payload);
|
||||
if (tmp_payload == NULL) {
|
||||
/*
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
* the request will be logged to the log file(s) defined outside
|
||||
* the virtual host section. If a TransferLog or CustomLog directive
|
||||
* appears in the VirtualHost section, the log files defined outside
|
||||
* the VirtualHost will _not_ be used. This makes this module compatable
|
||||
* the VirtualHost will _not_ be used. This makes this module compatible
|
||||
* with the CLF and config log modules, where the use of TransferLog
|
||||
* inside the VirtualHost section overrides its use outside.
|
||||
*
|
||||
|
||||
@@ -905,7 +905,7 @@ typedef struct cr_ctx
|
||||
} cr_ctx;
|
||||
|
||||
|
||||
/* Okay, this deserves a little explaination -- in order for the errors that lua
|
||||
/* Okay, this deserves a little explanation -- in order for the errors that lua
|
||||
* generates to be 'accuarate', including line numbers, we basically inject
|
||||
* N line number new lines into the 'top' of the chunk reader.....
|
||||
*
|
||||
|
||||
@@ -118,7 +118,7 @@ static const char *set_script(cmd_parms *cmd, void *m_v,
|
||||
}
|
||||
else {
|
||||
/* ap_method_register recognizes already registered methods,
|
||||
* so don't bother to check its previous existence explicitely.
|
||||
* so don't bother to check its previous existence explicitly.
|
||||
*/
|
||||
methnum = ap_method_register(cmd->pool, method);
|
||||
}
|
||||
|
||||
@@ -2252,7 +2252,7 @@ static int variant_has_language(var_rec *variant, const char *lang)
|
||||
}
|
||||
|
||||
/* check for environment variables 'no-gzip' and
|
||||
* 'gzip-only-text/html' to get a behaviour similiar
|
||||
* 'gzip-only-text/html' to get a behaviour similar
|
||||
* to mod_deflate
|
||||
*/
|
||||
static int discard_variant_by_env(var_rec *variant, int discard)
|
||||
@@ -2775,7 +2775,7 @@ static int setup_choice_response(request_rec *r, negotiation_state *neg,
|
||||
* see that Vary header yet at this point in the control flow.
|
||||
* This won't cause any cache consistency problems _unless_ the
|
||||
* CGI script also returns a Cache-Control header marking the
|
||||
* response as cachable. This needs to be fixed, also there are
|
||||
* response as cacheable. This needs to be fixed, also there are
|
||||
* problems if a CGI returns an Etag header which also need to be
|
||||
* fixed.
|
||||
*/
|
||||
@@ -3127,7 +3127,7 @@ static int handle_multi(request_rec *r)
|
||||
ap_internal_fast_redirect(sub_req, r);
|
||||
|
||||
/* give no advise for time on this subrequest. Perhaps we
|
||||
* should tally the last mtime amoung all variants, and date
|
||||
* should tally the last mtime among all variants, and date
|
||||
* the most recent, but that could confuse the proxies.
|
||||
*/
|
||||
r->mtime = 0;
|
||||
|
||||
@@ -4077,7 +4077,7 @@ static int apply_rewrite_rule(rewriterule_entry *p, rewrite_ctx *ctx)
|
||||
/* Ok, we already know the pattern has matched, but we now
|
||||
* additionally have to check for all existing preconditions
|
||||
* (RewriteCond) which have to be also true. We do this at
|
||||
* this very late stage to avoid unnessesary checks which
|
||||
* this very late stage to avoid unnecessary checks which
|
||||
* would slow down the rewriting engine.
|
||||
*/
|
||||
rewriteconds = p->rewriteconds;
|
||||
@@ -4871,7 +4871,7 @@ static int hook_fixup(request_rec *r)
|
||||
|
||||
/*
|
||||
* Do the Options check after engine check, so
|
||||
* the user is able to explicitely turn RewriteEngine Off.
|
||||
* the user is able to explicitly turn RewriteEngine Off.
|
||||
*/
|
||||
if (!(ap_allow_options(r) & (OPT_SYM_LINKS | OPT_SYM_OWNER))) {
|
||||
/* FollowSymLinks is mandatory! */
|
||||
@@ -4886,7 +4886,7 @@ static int hook_fixup(request_rec *r)
|
||||
/*
|
||||
* remember the current filename before rewriting for later check
|
||||
* to prevent deadlooping because of internal redirects
|
||||
* on final URL/filename which can be equal to the inital one.
|
||||
* on final URL/filename which can be equal to the initial one.
|
||||
* also, we'll restore original r->filename if we decline this
|
||||
* request
|
||||
*/
|
||||
|
||||
@@ -63,7 +63,7 @@ static void *merge_env_dir_configs(apr_pool_t *p, void *basev, void *addv)
|
||||
* table_set( res->vars, $element.key, $element.val );
|
||||
*
|
||||
* add->unsetenv already removed the vars from add->vars,
|
||||
* if they preceeded the UnsetEnv directive.
|
||||
* if they preceded the UnsetEnv directive.
|
||||
*/
|
||||
res->vars = apr_table_copy(p, base->vars);
|
||||
res->unsetenv = NULL;
|
||||
|
||||
@@ -161,7 +161,7 @@ struct magic {
|
||||
unsigned char hl[4]; /* 2 bytes of a fixed-endian "long" */
|
||||
} value; /* either number or string */
|
||||
unsigned long mask; /* mask before comparison with value */
|
||||
char nospflag; /* supress space character */
|
||||
char nospflag; /* suppress space character */
|
||||
|
||||
/* NOTE: this string is suspected of overrunning - find it! */
|
||||
char desc[MAXDESC]; /* description */
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
* = / == match; regex must be surrounded by slashes
|
||||
* ~ match; regex MAY NOT be surrounded by slashes
|
||||
*
|
||||
* Note that all operators may be preceeded by an exclamation mark
|
||||
* Note that all operators may be preceded by an exclamation mark
|
||||
* (without spaces) in order to reverse their meaning.
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -374,7 +374,7 @@ typedef struct {
|
||||
unsigned int fnv;
|
||||
} proxy_hashes ;
|
||||
|
||||
/* Runtime worker status informations. Shared in scoreboard */
|
||||
/* Runtime worker status information. Shared in scoreboard */
|
||||
/* The addition of member uds_path in 2.4.7 was an incompatible API change. */
|
||||
typedef struct {
|
||||
char name[PROXY_WORKER_MAX_NAME_SIZE];
|
||||
@@ -580,7 +580,7 @@ APR_DECLARE_EXTERNAL_HOOK(proxy, PROXY, int, fixups, (request_rec *r))
|
||||
/**
|
||||
* pre request hook.
|
||||
* It will return the most suitable worker at the moment
|
||||
* and coresponding balancer.
|
||||
* and corresponding balancer.
|
||||
* The url is rewritten from balancer://cluster/uri to scheme://host:port/uri
|
||||
* and then the scheme_handler is called.
|
||||
*
|
||||
@@ -763,7 +763,7 @@ PROXY_DECLARE(char *) ap_proxy_update_balancer(apr_pool_t *p,
|
||||
* @param url url containing balancer name
|
||||
* @param alias alias/fake-path to this balancer
|
||||
* @param do_malloc true if shared struct should be malloced
|
||||
* @return error message or NULL if successfull
|
||||
* @return error message or NULL if successful
|
||||
*/
|
||||
PROXY_DECLARE(char *) ap_proxy_define_balancer(apr_pool_t *p,
|
||||
proxy_balancer **balancer,
|
||||
|
||||
@@ -141,7 +141,7 @@ static apr_off_t get_content_length(request_rec * r)
|
||||
* XXX: AJP Auto Flushing
|
||||
*
|
||||
* When processing CMD_AJP13_SEND_BODY_CHUNK AJP messages we will do a poll
|
||||
* with FLUSH_WAIT miliseconds timeout to determine if more data is currently
|
||||
* with FLUSH_WAIT milliseconds timeout to determine if more data is currently
|
||||
* available at the backend. If there is no more data available, we flush
|
||||
* the data to the client by adding a flush bucket to the brigade we pass
|
||||
* up the filter chain.
|
||||
@@ -358,7 +358,7 @@ static int ap_proxy_ajp_request(apr_pool_t *p, request_rec *r,
|
||||
}
|
||||
return HTTP_INTERNAL_SERVER_ERROR;
|
||||
}
|
||||
/* parse the reponse */
|
||||
/* parse the response */
|
||||
result = ajp_parse_type(r, conn->data);
|
||||
output_brigade = apr_brigade_create(p, r->connection->bucket_alloc);
|
||||
|
||||
|
||||
@@ -1798,13 +1798,13 @@ PROXY_DECLARE(apr_status_t) ap_proxy_initialize_worker(proxy_worker *worker, ser
|
||||
if (worker->s->smax == -1 || worker->s->smax > worker->s->hmax) {
|
||||
worker->s->smax = worker->s->hmax;
|
||||
}
|
||||
/* Set min to be lower then smax */
|
||||
/* Set min to be lower than smax */
|
||||
if (worker->s->min > worker->s->smax) {
|
||||
worker->s->min = worker->s->smax;
|
||||
}
|
||||
}
|
||||
else {
|
||||
/* This will supress the apr_reslist creation */
|
||||
/* This will suppress the apr_reslist creation */
|
||||
worker->s->min = worker->s->smax = worker->s->hmax = 0;
|
||||
}
|
||||
}
|
||||
@@ -2328,7 +2328,7 @@ ap_proxy_determine_connection(apr_pool_t *p, request_rec *r,
|
||||
}
|
||||
|
||||
/*
|
||||
* Worker can have the single constant backend adress.
|
||||
* Worker can have the single constant backend address.
|
||||
* The single DNS lookup is used once per worker.
|
||||
* If dynamic change is needed then set the addr to NULL
|
||||
* inside dynamic config to force the lookup.
|
||||
@@ -3469,7 +3469,7 @@ PROXY_DECLARE(int) ap_proxy_create_hdrbrgd(apr_pool_t *p,
|
||||
*
|
||||
* The HTTP/1.1 Via: header is designed for passing client
|
||||
* information through proxies to a server, and should be used in
|
||||
* a forward proxy configuation instead of X-Forwarded-*. See the
|
||||
* a forward proxy configuration instead of X-Forwarded-*. See the
|
||||
* ProxyVia option for details.
|
||||
*/
|
||||
if (dconf->add_forwarded_headers) {
|
||||
|
||||
@@ -753,7 +753,7 @@ static const ap_slotmem_provider_t storage = {
|
||||
&slotmem_fgrab
|
||||
};
|
||||
|
||||
/* make the storage usuable from outside */
|
||||
/* make the storage usable from outside */
|
||||
static const ap_slotmem_provider_t *slotmem_shm_getstorage(void)
|
||||
{
|
||||
return (&storage);
|
||||
|
||||
@@ -59,7 +59,7 @@ DATA STRUCTURES
|
||||
For an overview how these are related and chained together have a look at the
|
||||
page in README.dsov.{fig,ps}. It contains overview diagrams for those data
|
||||
structures. It's designed for DIN A4 paper size, but you can easily generate
|
||||
a smaller version inside XFig by specifing a magnification on the Export
|
||||
a smaller version inside XFig by specifying a magnification on the Export
|
||||
panel.
|
||||
|
||||
INCOMPATIBILITIES
|
||||
@@ -81,7 +81,7 @@ MAJOR CHANGES
|
||||
o The DBM based session cache is now based on APR's DBM API only.
|
||||
o The shared memory based session cache is now based on APR's APIs.
|
||||
o SSL I/O is now implemented in terms of filters rather than BUFF
|
||||
o Eliminated ap_global_ctx. Storing Persistant information in
|
||||
o Eliminated ap_global_ctx. Storing Persistent information in
|
||||
process_rec->pool->user_data. The ssl_pphrase_Handle_CB() and
|
||||
ssl_config_global_* () functions have an extra parameter now -
|
||||
"server_rec *" - which is used to retrieve the SSLModConfigRec.
|
||||
|
||||
@@ -924,7 +924,7 @@ static apr_status_t ssl_init_ctx_cert_chain(server_rec *s,
|
||||
* SSLCACertificateFile and also use client authentication mod_ssl
|
||||
* would accept all clients also issued by this CA. Obviously this
|
||||
* isn't what we want in this situation. So this feature here exists
|
||||
* to allow one to explicity configure CA certificates which are
|
||||
* to allow one to explicitly configure CA certificates which are
|
||||
* used only for the server certificate chain.
|
||||
*/
|
||||
if (!chain) {
|
||||
|
||||
@@ -218,7 +218,7 @@ static int bio_filter_out_write(BIO *bio, const char *in, int inl)
|
||||
*
|
||||
* Historically, this flush call was performed only for an SSLv2
|
||||
* connection or for a proxy connection. Calling _out_flush can
|
||||
* be expensive in cases where requests/reponses are pipelined,
|
||||
* be expensive in cases where requests/responses are pipelined,
|
||||
* so limit the performance impact to handshake time.
|
||||
*/
|
||||
#if OPENSSL_VERSION_NUMBER < 0x0009080df
|
||||
|
||||
@@ -1017,7 +1017,7 @@ int ssl_hook_Access(request_rec *r)
|
||||
return HTTP_FORBIDDEN;
|
||||
}
|
||||
|
||||
/* Full renegotiation successfull, we now have handshaken with
|
||||
/* Full renegotiation successful, we now have handshaken with
|
||||
* this server's parameters.
|
||||
*/
|
||||
sslconn->server = r->server;
|
||||
@@ -1159,7 +1159,7 @@ int ssl_hook_Access(request_rec *r)
|
||||
* Fake a Basic authentication from the X509 client certificate.
|
||||
*
|
||||
* This must be run fairly early on to prevent a real authentication from
|
||||
* occuring, in particular it must be run before anything else that
|
||||
* occurring, in particular it must be run before anything else that
|
||||
* authenticates a user. This means that the Module statement for this
|
||||
* module should be LAST in the Configuration file.
|
||||
*/
|
||||
|
||||
@@ -1083,7 +1083,7 @@ apr_array_header_t *ssl_ext_list(apr_pool_t *p, conn_rec *c, int peer,
|
||||
}
|
||||
|
||||
count = X509_get_ext_count(xs);
|
||||
/* Create an array large enough to accomodate every extension. This is
|
||||
/* Create an array large enough to accommodate every extension. This is
|
||||
* likely overkill, but safe.
|
||||
*/
|
||||
array = apr_array_make(p, count, sizeof(char *));
|
||||
|
||||
@@ -25,7 +25,7 @@ Within the POSIX subsystem, the same character set was chosen as in
|
||||
"native BS2000", namely EBCDIC.
|
||||
|
||||
EBCDIC Table. (Yes, in EBCDIC, the letters 'a'..'z' are not contiguous!)
|
||||
This apr_table_t is bijective, i.e. there are no ambigous or duplicate characters
|
||||
This apr_table_t is bijective, i.e. there are no ambiguous or duplicate characters
|
||||
00 00 01 02 03 85 09 86 7f 87 8d 8e 0b 0c 0d 0e 0f *................*
|
||||
10 10 11 12 13 8f 0a 08 97 18 19 9c 9d 1c 1d 1e 1f *................*
|
||||
20 80 81 82 83 84 92 17 1b 88 89 8a 8b 8c 05 06 07 *................*
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* C9X defintion used by MSL C++ library */
|
||||
/* C9X definition used by MSL C++ library */
|
||||
#define DECIMAL_DIG 17
|
||||
|
||||
/* some code may want to use the MS convention for long long */
|
||||
|
||||
@@ -488,7 +488,7 @@ AP_DECLARE(apr_status_t) ap_regkey_value_array_get(apr_array_header_t **result,
|
||||
#if APR_HAS_ANSI_FS
|
||||
ELSE_WIN_OS_IS_ANSI
|
||||
{
|
||||
/* Small possiblity the array is either unterminated
|
||||
/* Small possibility the array is either unterminated
|
||||
* or single NULL terminated. Avert.
|
||||
*/
|
||||
buf = (char *)value;
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* http_config.c: once was auxillary functions for reading httpd's config
|
||||
* http_config.c: once was auxiliary functions for reading httpd's config
|
||||
* file and converting filenames into a namespace
|
||||
*
|
||||
* Rob McCool
|
||||
@@ -737,7 +737,7 @@ AP_DECLARE(void) ap_remove_loaded_module(module *mod)
|
||||
*
|
||||
* Note: 1. We cannot determine if the module was successfully
|
||||
* removed by ap_remove_module().
|
||||
* 2. We have not to complain explicity when the module
|
||||
* 2. We have not to complain explicitly when the module
|
||||
* is not found because ap_remove_module() did it
|
||||
* for us already.
|
||||
*/
|
||||
@@ -1326,7 +1326,7 @@ static const char *ap_walk_config_sub(const ap_directive_t *current,
|
||||
if (retval != NULL && strcmp(retval, DECLINE_CMD) != 0) {
|
||||
/* If the directive in error has already been set, don't
|
||||
* replace it. Otherwise, an error inside a container
|
||||
* will be reported as occuring on the first line of the
|
||||
* will be reported as occurring on the first line of the
|
||||
* container.
|
||||
*/
|
||||
if (!parms->err_directive) {
|
||||
|
||||
@@ -90,7 +90,7 @@ int main(int argc, char *argv[])
|
||||
* since Win32/OS2 use carets or doubled-double quotes,
|
||||
* and neither lf nor cr can be escaped. We escape unix
|
||||
* specific as well, to assure that cross-compiled unix
|
||||
* applications behave similiarly when invoked on win32/os2.
|
||||
* applications behave similarly when invoked on win32/os2.
|
||||
*
|
||||
* Rem please keep in-sync with apr's list in win32/filesys.c
|
||||
*/
|
||||
|
||||
@@ -763,7 +763,7 @@ AP_DECLARE(void) ap_listen_pre_config(void)
|
||||
/* Check once whether or not SO_REUSEPORT is supported. */
|
||||
if (ap_have_so_reuseport < 0) {
|
||||
/* This is limited to Linux with defined SO_REUSEPORT (ie. 3.9+) for
|
||||
* now since the implementation evenly distributes connections accross
|
||||
* now since the implementation evenly distributes connections across
|
||||
* all the listening threads/processes.
|
||||
*
|
||||
* *BSDs have SO_REUSEPORT too but with a different semantic: the first
|
||||
|
||||
@@ -347,7 +347,7 @@ typedef struct event_retained_data {
|
||||
#endif
|
||||
int hold_off_on_exponential_spawning;
|
||||
/*
|
||||
* Current number of listeners buckets and maximum reached accross
|
||||
* Current number of listeners buckets and maximum reached across
|
||||
* restarts (to size retained data according to dynamic num_buckets,
|
||||
* eg. idle_spawn_rate).
|
||||
*/
|
||||
@@ -2830,7 +2830,7 @@ static int event_run(apr_pool_t * _pconf, apr_pool_t * plog, server_rec * s)
|
||||
if (ap_daemons_to_start < num_buckets)
|
||||
ap_daemons_to_start = num_buckets;
|
||||
/* We want to create as much children at a time as the number of buckets,
|
||||
* so to optimally accept connections (evenly distributed accross buckets).
|
||||
* so to optimally accept connections (evenly distributed across buckets).
|
||||
* Thus min_spare_threads should at least maintain num_buckets children,
|
||||
* and max_spare_threads allow num_buckets more children w/o triggering
|
||||
* immediately (e.g. num_buckets idle threads margin, one per bucket).
|
||||
|
||||
@@ -703,7 +703,7 @@ static void child_main(int child_num_arg, int child_bucket)
|
||||
SAFE_ACCEPT(accept_mutex_off()); /* unlock after "accept" */
|
||||
|
||||
if (status == APR_EGENERAL) {
|
||||
/* resource shortage or should-not-occur occured */
|
||||
/* resource shortage or should-not-occur occurred */
|
||||
clean_child_exit(APEXIT_CHILDSICK);
|
||||
}
|
||||
else if (status != APR_SUCCESS) {
|
||||
|
||||
@@ -1004,7 +1004,7 @@ static void winnt_rewrite_args(process_rec *process)
|
||||
* -k config
|
||||
* -k uninstall
|
||||
* -k stop
|
||||
* -k shutdown (same as -k stop). Maintained for backward compatability.
|
||||
* -k shutdown (same as -k stop). Maintained for backward compatibility.
|
||||
*
|
||||
* We can't leave this phase until we know our identity
|
||||
* and modify the command arguments appropriately.
|
||||
@@ -1050,7 +1050,7 @@ static void winnt_rewrite_args(process_rec *process)
|
||||
my_pid = GetCurrentProcessId();
|
||||
parent_pid = (DWORD) atol(pid);
|
||||
|
||||
/* Prevent holding open the (nonexistant) console */
|
||||
/* Prevent holding open the (nonexistent) console */
|
||||
ap_real_exit_code = 0;
|
||||
|
||||
/* The parent gave us stdin, we need to remember this
|
||||
|
||||
@@ -104,7 +104,7 @@ static APR_INLINE SC_HANDLE OpenSCManager(const void *lpMachine,
|
||||
*
|
||||
* If ap_real_exit_code is reset to 0, it will not be set or trigger this
|
||||
* behavior on exit. All service and child processes are expected to
|
||||
* reset this flag to zero to avoid undesireable side effects.
|
||||
* reset this flag to zero to avoid undesirable side effects.
|
||||
*/
|
||||
AP_DECLARE_DATA int ap_real_exit_code = 1;
|
||||
|
||||
|
||||
@@ -168,7 +168,7 @@ typedef struct worker_retained_data {
|
||||
#endif
|
||||
int hold_off_on_exponential_spawning;
|
||||
/*
|
||||
* Current number of listeners buckets and maximum reached accross
|
||||
* Current number of listeners buckets and maximum reached across
|
||||
* restarts (to size retained data according to dynamic num_buckets,
|
||||
* eg. idle_spawn_rate).
|
||||
*/
|
||||
@@ -1837,7 +1837,7 @@ static int worker_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s)
|
||||
if (ap_daemons_to_start < num_buckets)
|
||||
ap_daemons_to_start = num_buckets;
|
||||
/* We want to create as much children at a time as the number of buckets,
|
||||
* so to optimally accept connections (evenly distributed accross buckets).
|
||||
* so to optimally accept connections (evenly distributed across buckets).
|
||||
* Thus min_spare_threads should at least maintain num_buckets children,
|
||||
* and max_spare_threads allow num_buckets more children w/o triggering
|
||||
* immediately (e.g. num_buckets idle threads margin, one per bucket).
|
||||
|
||||
@@ -228,7 +228,7 @@ const char *ap_parse_vhost_addrs(apr_pool_t *p,
|
||||
server_addr_rec **addrs;
|
||||
const char *err;
|
||||
|
||||
/* start the list of addreses */
|
||||
/* start the list of addresses */
|
||||
addrs = &s->addrs;
|
||||
while (hostname[0]) {
|
||||
err = get_addresses(p, ap_getword_conf(p, &hostname), &addrs, s->port);
|
||||
@@ -574,7 +574,7 @@ AP_DECLARE(void) ap_fini_vhost_config(apr_pool_t *p, server_rec *main_s)
|
||||
|
||||
/* The next things to go into the hash table are the virtual hosts
|
||||
* themselves. They're listed off of main_s->next in the reverse
|
||||
* order they occured in the config file, so we insert them at
|
||||
* order they occurred in the config file, so we insert them at
|
||||
* the iphash_table_tail but don't advance the tail.
|
||||
*/
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Given one or more group identifers on the command line (e.g.,
|
||||
* Given one or more group identifiers on the command line (e.g.,
|
||||
* "httpd" or "#-1"), figure out whether they'll be valid for
|
||||
* the server to use at run-time.
|
||||
*
|
||||
|
||||
@@ -1046,9 +1046,9 @@ static void purge(char *path, apr_pool_t *pool, apr_off_t max,
|
||||
return;
|
||||
}
|
||||
|
||||
/* process remaining entries oldest to newest, the check for an emtpy
|
||||
/* process remaining entries oldest to newest, the check for an empty
|
||||
* ring actually isn't necessary except when the compiler does
|
||||
* corrupt 64bit arithmetics which happend to me once, so better safe
|
||||
* corrupt 64bit arithmetics which happened to me once, so better safe
|
||||
* than sorry
|
||||
*/
|
||||
while (!((!s.max || s.sum <= s.max) && (!s.inodes || s.nodes <= s.inodes))
|
||||
|
||||
@@ -258,7 +258,7 @@ int main(int argc, const char * const argv[])
|
||||
resolves++;
|
||||
|
||||
/* From here on our we cache each result, even if it was not
|
||||
* succesful
|
||||
* successful
|
||||
*/
|
||||
cachesize++;
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
# logfile lines processed per hour compared to ~45,000 per hour
|
||||
# with 'logresolve'.
|
||||
#
|
||||
# I haven't yet seen any noticable reduction in the percentage of IPs
|
||||
# I haven't yet seen any noticeable reduction in the percentage of IPs
|
||||
# that fail to get resolved. Your mileage will no doubt vary. 5s is long
|
||||
# enough to wait IMO.
|
||||
#
|
||||
@@ -207,7 +207,7 @@ sub nslookup {
|
||||
|
||||
# do the hostname lookup inside an eval. The eval will use the
|
||||
# already configured SIGnal handler and drop out of the {} block
|
||||
# regardless of whether the alarm occured or not.
|
||||
# regardless of whether the alarm occurred or not.
|
||||
eval {
|
||||
alarm($TIMEOUT);
|
||||
$hostname = gethostbyaddr(gethostbyname($ip), AF_INET);
|
||||
|
||||
@@ -82,7 +82,7 @@ do
|
||||
done
|
||||
|
||||
if [ $# = 1 ]; then
|
||||
echo "Aborted - just specifing one vhost makes no sense for SNI testing. Go wild !"
|
||||
echo "Aborted - just specifying one vhost makes no sense for SNI testing. Go wild !"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user