]> granicus.if.org Git - apache/log
apache
22 years agoTry to get sitemap up to date. Maybe some day there will be an automated way
Joshua Slive [Fri, 3 May 2002 18:43:26 +0000 (18:43 +0000)]
Try to get sitemap up to date.  Maybe some day there will be an automated way
to do this...

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94917 13f79535-47bb-0310-9956-ffa450edef68

22 years agoKeep rollin', rollin', rollin'
Justin Erenkrantz [Fri, 3 May 2002 05:50:40 +0000 (05:50 +0000)]
Keep rollin', rollin', rollin'
Though the streams are swollen,
Keep them dogies rollin', Rawhide!

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94915 13f79535-47bb-0310-9956-ffa450edef68

22 years agoBy using _setn instead of _set, this call is setting a pointer to a stack variable
Bradley Nicholes [Thu, 2 May 2002 22:03:58 +0000 (22:03 +0000)]
By using _setn instead of _set, this call is setting a pointer to a stack variable
in the hash entry.  Once initialize_module() returns, the key pointer in the
hash entry is invalid.  This causes a fault the next time that the hash entry
key is checked.  Calling the _set() version will store a copy of the key which
has the same lifetime as the hash table entry.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94914 13f79535-47bb-0310-9956-ffa450edef68

22 years agofix a typo
Cliff Woolley [Thu, 2 May 2002 20:16:34 +0000 (20:16 +0000)]
fix a typo

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94912 13f79535-47bb-0310-9956-ffa450edef68

22 years agoDone
Bill Stoddard [Thu, 2 May 2002 20:00:17 +0000 (20:00 +0000)]
Done

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94911 13f79535-47bb-0310-9956-ffa450edef68

22 years agoWin32: Fix bug in mpm_win32 which allowed multiple threads to access
Bill Stoddard [Thu, 2 May 2002 19:54:07 +0000 (19:54 +0000)]
Win32: Fix bug in mpm_win32 which allowed multiple threads to access
the same scoreboard slot across graceful restarts.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94910 13f79535-47bb-0310-9956-ffa450edef68

22 years agoMissed a closing tag.
Joshua Slive [Thu, 2 May 2002 17:53:14 +0000 (17:53 +0000)]
Missed a closing tag.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94908 13f79535-47bb-0310-9956-ffa450edef68

22 years agoUpdate the filter documentation to mention AddInput/OutputFilter and
Joshua Slive [Thu, 2 May 2002 17:52:21 +0000 (17:52 +0000)]
Update the filter documentation to mention AddInput/OutputFilter and
DEFLATE.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94907 13f79535-47bb-0310-9956-ffa450edef68

22 years agoFurther cleanup of mod_mime docs:
Joshua Slive [Thu, 2 May 2002 17:46:35 +0000 (17:46 +0000)]
Further cleanup of mod_mime docs:
- Shorten up the summary a little.
- Remove some cross-references where the link is already in the directive text.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94906 13f79535-47bb-0310-9956-ffa450edef68

22 years agoSome cleanup, cross-referencing, and description additions for mod_mime.
Joshua Slive [Thu, 2 May 2002 15:10:28 +0000 (15:10 +0000)]
Some cleanup, cross-referencing, and description additions for mod_mime.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94905 13f79535-47bb-0310-9956-ffa450edef68

22 years agoUpdate transformations.
Joshua Slive [Thu, 2 May 2002 14:37:13 +0000 (14:37 +0000)]
Update transformations.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94904 13f79535-47bb-0310-9956-ffa450edef68

22 years agoBe a little more specific about what Location matches against.
Joshua Slive [Thu, 2 May 2002 14:34:36 +0000 (14:34 +0000)]
Be a little more specific about what Location matches against.

PR: 8569

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94903 13f79535-47bb-0310-9956-ffa450edef68

22 years agoBring tutorial page updates forward from 1.3, but preserve the "this may be
Joshua Slive [Thu, 2 May 2002 14:28:52 +0000 (14:28 +0000)]
Bring tutorial page updates forward from 1.3, but preserve the "this may be
out of date" warning.

PR: 8696

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94902 13f79535-47bb-0310-9956-ffa450edef68

22 years agoPerformance fixes:
Brian Pane [Thu, 2 May 2002 03:19:44 +0000 (03:19 +0000)]
Performance fixes:
* eliminate some copying of sub-parts of the content type in analyze_ct()
* take advantage of the fact that we know the lengths of those sub-parts
  in find_ct() to avoid having to recompute their length for concatenation

The charset handling code needs the same type of optimization eventually.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94900 13f79535-47bb-0310-9956-ffa450edef68

22 years agoFix some minor formatting issues with ab. Part of this is
Paul J. Reder [Wed, 1 May 2002 21:17:18 +0000 (21:17 +0000)]
Fix some minor formatting issues with ab. Part of this is
     in reference to PR 8544, the rest I noticed while testing
     the PR fix. [Paul J. Reder]

Submitted By: Carlo Marcelo Arenas Belon
Reviewed By:  Paul J. Reder

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94898 13f79535-47bb-0310-9956-ffa450edef68

22 years agoFailed to mentionthe PR in the first pass. This just adds the PR number
Paul J. Reder [Wed, 1 May 2002 20:03:14 +0000 (20:03 +0000)]
Failed to mentionthe PR in the first pass. This just adds the PR number
to the CHANGES file. (PR 8320)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94897 13f79535-47bb-0310-9956-ffa450edef68

22 years agoFix a case where an invalid pass phrase is entered and an
Paul J. Reder [Wed, 1 May 2002 19:28:52 +0000 (19:28 +0000)]
Fix a case where an invalid pass phrase is entered and an
error message is given, but the prompt is not shown again.
This left the user in an ambiguous state.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94896 13f79535-47bb-0310-9956-ffa450edef68

22 years agowait for worker threads to exit even in graceless termination
Jeff Trawick [Wed, 1 May 2002 16:05:59 +0000 (16:05 +0000)]
wait for worker threads to exit even in graceless termination
(we already have code to make them exit sooner now)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94892 13f79535-47bb-0310-9956-ffa450edef68

22 years ago Always build this experimental module (which has no library dependencies).
William A. Rowe Jr [Wed, 1 May 2002 15:23:13 +0000 (15:23 +0000)]
  Always build this experimental module (which has no library dependencies).
  Build failure reported by Jerry Baker to dev@httpd

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94890 13f79535-47bb-0310-9956-ffa450edef68

22 years agoDefer starting the listener until we have at least tried to start all the worker
Bill Stoddard [Wed, 1 May 2002 15:06:44 +0000 (15:06 +0000)]
Defer starting the listener until we have at least tried to start all the worker
threads.  We want to get the workers in the pool of available threads ASAP
to keep perform_idle_server_maintenance from thrashing and starting too
many processes prematurely.  The code before this patch would dribble workers
into the worker pool over an extended period of time and this prevented
perform_idle_server_maintenance from accurately deciding when new processes
were needed.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94889 13f79535-47bb-0310-9956-ffa450edef68

22 years agoUpdate prior to bumping the tag
Sander Striker [Wed, 1 May 2002 10:37:42 +0000 (10:37 +0000)]
Update prior to bumping the tag

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94888 13f79535-47bb-0310-9956-ffa450edef68

22 years agoClose sockets on worker MPM when doing a graceless restart. This should
Justin Erenkrantz [Wed, 1 May 2002 07:15:39 +0000 (07:15 +0000)]
Close sockets on worker MPM when doing a graceless restart.  This should
resolve some segfaults see when doing such restarts.

(Justin tweaked the palloc/memset in favor of calloc.)

Submitted by: Aaron Bannert
Reviewed by: Greg Ames, Sander Striker, Justin Erenkrantz

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94886 13f79535-47bb-0310-9956-ffa450edef68

22 years agoEliminate some sprintf calls
Brian Pane [Wed, 1 May 2002 06:41:36 +0000 (06:41 +0000)]
Eliminate some sprintf calls

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94885 13f79535-47bb-0310-9956-ffa450edef68

22 years agoNetWare make files for building experimental module mod_cache and its
Bradley Nicholes [Tue, 30 Apr 2002 22:16:51 +0000 (22:16 +0000)]
NetWare make files for building experimental module mod_cache and its
associated support modules.

Submitted by: Jean-Jacques Clar [jjclar@novell.com]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94884 13f79535-47bb-0310-9956-ffa450edef68

22 years agoNetWare make files for building experimental modules mod_deflate,
Bradley Nicholes [Tue, 30 Apr 2002 21:54:53 +0000 (21:54 +0000)]
NetWare make files for building experimental modules mod_deflate,
mod_example and support utilities ab, htdbm and logresolve

Submitted by: Guenter Knauf [eflash@gmx.net]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94883 13f79535-47bb-0310-9956-ffa450edef68

22 years agodefault_handler: move the code to handle unusual methods out of the middle
Greg Ames [Tue, 30 Apr 2002 20:12:26 +0000 (20:12 +0000)]
default_handler: move the code to handle unusual methods out of the middle
of the hot path without using goto.

suggested by: Roy Fielding

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94882 13f79535-47bb-0310-9956-ffa450edef68

22 years agoRevert optimization from circa 2.0.34 that caused very long vhost id's
Cliff Woolley [Tue, 30 Apr 2002 17:10:12 +0000 (17:10 +0000)]
Revert optimization from circa 2.0.34 that caused very long vhost id's
to be unusable with mod_ssl.

PR: 8572

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94881 13f79535-47bb-0310-9956-ffa450edef68

22 years agoReadjusting how the bucket alloc is done for each worker thread. Allocate
Bradley Nicholes [Tue, 30 Apr 2002 14:32:07 +0000 (14:32 +0000)]
Readjusting how the bucket alloc is done for each worker thread.  Allocate
the bucket once per thread rather than on every request.  This change
increases our performance significantly.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94880 13f79535-47bb-0310-9956-ffa450edef68

22 years agoFix the link to the description of the CoredumpDirectory
Jeff Trawick [Tue, 30 Apr 2002 14:20:29 +0000 (14:20 +0000)]
Fix the link to the description of the CoredumpDirectory
directive in the server-wide document.

PR:          8643

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94879 13f79535-47bb-0310-9956-ffa450edef68

22 years agonote a desirable goal
Cliff Woolley [Tue, 30 Apr 2002 06:57:22 +0000 (06:57 +0000)]
note a desirable goal

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94877 13f79535-47bb-0310-9956-ffa450edef68

22 years agoSHMCB should not have been using apr_rmm -- it was doing so incorrectly,
Cliff Woolley [Tue, 30 Apr 2002 06:48:45 +0000 (06:48 +0000)]
SHMCB should not have been using apr_rmm -- it was doing so incorrectly,
for one thing.  But it just plain doesn't need it.  Rip it out to avoid
segfaulting.

Submitted by:  Aaron Bannert

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94876 13f79535-47bb-0310-9956-ffa450edef68

22 years ago- Sync with modssl 2.8.8-1.3.24
Cliff Woolley [Tue, 30 Apr 2002 03:47:31 +0000 (03:47 +0000)]
- Sync with modssl 2.8.8-1.3.24
- Also a minor change to add more useful error
  logging for shmcb startup failures

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94875 13f79535-47bb-0310-9956-ffa450edef68

22 years agomod_cache doc update (note this is still very primitive)
Bill Stoddard [Tue, 30 Apr 2002 03:41:45 +0000 (03:41 +0000)]
mod_cache doc update (note this is still very primitive)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94874 13f79535-47bb-0310-9956-ffa450edef68

22 years agoEnable mod_mem_cache to be configured to cache open file handle using new
Bill Stoddard [Tue, 30 Apr 2002 03:25:12 +0000 (03:25 +0000)]
Enable mod_mem_cache to be configured to cache open file handle using new
directive option: CacheEnable fd / will enable caching fds. If for some
reason the fd cannot be cached, the directive will effectively morph into
CacheEnable mem /

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94873 13f79535-47bb-0310-9956-ffa450edef68

22 years agoRemove APR_WANT_SIGNAL from apr_want.h because code must include
Roy T. Fielding [Tue, 30 Apr 2002 01:29:11 +0000 (01:29 +0000)]
Remove APR_WANT_SIGNAL from apr_want.h because code must include
apr_signal.h in order to get consistent definitions.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94872 13f79535-47bb-0310-9956-ffa450edef68

22 years agoremove_entity should only work on complete cache_objects
Bill Stoddard [Tue, 30 Apr 2002 00:06:16 +0000 (00:06 +0000)]
remove_entity should only work on complete cache_objects

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94871 13f79535-47bb-0310-9956-ffa450edef68

22 years ago Please, Win32 hackers, review this doc!!! Talk about out of date and
William A. Rowe Jr [Mon, 29 Apr 2002 21:42:52 +0000 (21:42 +0000)]
  Please, Win32 hackers, review this doc!!!  Talk about out of date and
  horribly stale.  A dry run report would be a great thing for feedback.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94870 13f79535-47bb-0310-9956-ffa450edef68

22 years ago Worth noting, I guess
William A. Rowe Jr [Mon, 29 Apr 2002 19:55:49 +0000 (19:55 +0000)]
  Worth noting, I guess

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94869 13f79535-47bb-0310-9956-ffa450edef68

22 years ago Should correctly build mod_ext_filter, mod_deflate dependant upon zlib,
William A. Rowe Jr [Mon, 29 Apr 2002 19:53:55 +0000 (19:53 +0000)]
  Should correctly build mod_ext_filter, mod_deflate dependant upon zlib,
  and change the license-add code for openssl+zlib based on the newest
  changes to a global LICENSE for all bundled components.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94868 13f79535-47bb-0310-9956-ffa450edef68

22 years agoForget to update the error messages
Bill Stoddard [Mon, 29 Apr 2002 19:44:47 +0000 (19:44 +0000)]
Forget to update the error messages

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94867 13f79535-47bb-0310-9956-ffa450edef68

22 years agoName space protect mod_mem_cache config directives
Bill Stoddard [Mon, 29 Apr 2002 19:09:20 +0000 (19:09 +0000)]
Name space protect mod_mem_cache config directives

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94866 13f79535-47bb-0310-9956-ffa450edef68

22 years agofinish getting apxs to work with a binary build
Jeff Trawick [Mon, 29 Apr 2002 18:09:02 +0000 (18:09 +0000)]
finish getting apxs to work with a binary build

it now picks up any necessary ld environment variables from
the envvars file when invoking "httpd -l" to verify that
mod_so was included in the build

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94865 13f79535-47bb-0310-9956-ffa450edef68

22 years agoFixing up the distribution and install section of the NetWare make files
Bradley Nicholes [Mon, 29 Apr 2002 15:10:20 +0000 (15:10 +0000)]
Fixing up the distribution and install section of the NetWare make files

Submitted by: Guenter Knauf

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94863 13f79535-47bb-0310-9956-ffa450edef68

22 years agoAdded some missing export to the proxy module
Bradley Nicholes [Mon, 29 Apr 2002 14:35:48 +0000 (14:35 +0000)]
Added some missing export to the proxy module

Submitted by: Guenter Knauf

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94862 13f79535-47bb-0310-9956-ffa450edef68

22 years ago Demote to a minor bump for .36 - those affected by API changes should
William A. Rowe Jr [Mon, 29 Apr 2002 12:51:31 +0000 (12:51 +0000)]
  Demote to a minor bump for .36 - those affected by API changes should
  be a very small subset of modules.  Here are the afflicted types & fns;

apr_explode_time      -> apr_time_exp_tz
apr_explode_localtime -> apr_time_exp_lt
apr_get_groupname     -> apr_group_name_get

deprecated apr_lock_t, apr_os_lock_t and fns, but the warnings
have been there a while so no sympathy.

added dav_hooks_search_t and DASL Search functions.

added apr_cmdtype_e *type arg to mod_cgi opt fn ap_cgi_build_command.

added proxy_fixups hook and ap_proxy_ssl_disable, and
optional fn ssl_engine_disable.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94859 13f79535-47bb-0310-9956-ffa450edef68

22 years ago Attach a bugz number
William A. Rowe Jr [Mon, 29 Apr 2002 12:30:42 +0000 (12:30 +0000)]
  Attach a bugz number

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94858 13f79535-47bb-0310-9956-ffa450edef68

22 years agoUpdate prior to bumping the tag
Sander Striker [Mon, 29 Apr 2002 08:35:47 +0000 (08:35 +0000)]
Update prior to bumping the tag

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94857 13f79535-47bb-0310-9956-ffa450edef68

22 years agoReplaced a sprintf("%d") with itoa
Brian Pane [Mon, 29 Apr 2002 08:05:37 +0000 (08:05 +0000)]
Replaced a sprintf("%d") with itoa

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94856 13f79535-47bb-0310-9956-ffa450edef68

22 years agoShort-circuit out of mod_userdir's translation handler faster on
Brian Pane [Mon, 29 Apr 2002 07:45:43 +0000 (07:45 +0000)]
Short-circuit out of mod_userdir's translation handler faster on
non "/~*" requests

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94855 13f79535-47bb-0310-9956-ffa450edef68

22 years agoUpdated ap_getword_white() to use the same coding style
Brian Pane [Mon, 29 Apr 2002 07:20:46 +0000 (07:20 +0000)]
Updated ap_getword_white() to use the same coding style
(and optimizations) as ap_getword()

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94854 13f79535-47bb-0310-9956-ffa450edef68

22 years agoUpdating my vote on the worker MPM
Brian Pane [Mon, 29 Apr 2002 06:59:20 +0000 (06:59 +0000)]
Updating my vote on the worker MPM

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94853 13f79535-47bb-0310-9956-ffa450edef68

22 years agoDocument this weekend's worker MPM changes
Brian Pane [Mon, 29 Apr 2002 06:56:44 +0000 (06:56 +0000)]
Document this weekend's worker MPM changes

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94852 13f79535-47bb-0310-9956-ffa450edef68

22 years agoFix spelling/typo
Bill Stoddard [Mon, 29 Apr 2002 02:36:10 +0000 (02:36 +0000)]
Fix spelling/typo

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94851 13f79535-47bb-0310-9956-ffa450edef68

22 years agoRemoved some code from the mutex-protected block in ap_queue_pop().
Brian Pane [Mon, 29 Apr 2002 01:57:39 +0000 (01:57 +0000)]
Removed some code from the mutex-protected block in ap_queue_pop().
If the worker thread synchronization is working properly, it's not
necessary to set these fields to NULL after removing an element from
the queue, and it's IMO more important to have a shorter code path
leading up to the mutex_unlock.  I left in support for NULLing the
fields when debugging, though.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94850 13f79535-47bb-0310-9956-ffa450edef68

22 years agoBecause mod_imap's handler runs on every request in the default
Brian Pane [Mon, 29 Apr 2002 01:03:17 +0000 (01:03 +0000)]
Because mod_imap's handler runs on every request in the default
configuration, rearrange the code to keep it from allocating a few
pages worth of local variables on the stack on requests that don't
use imagemaps

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94849 13f79535-47bb-0310-9956-ffa450edef68

22 years agoWhat did I do today?
Aaron Bannert [Sun, 28 Apr 2002 23:44:13 +0000 (23:44 +0000)]
What did I do today?

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94848 13f79535-47bb-0310-9956-ffa450edef68

22 years agoDon't install *.in config files.
Aaron Bannert [Sun, 28 Apr 2002 23:41:25 +0000 (23:41 +0000)]
Don't install *.in config files.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94847 13f79535-47bb-0310-9956-ffa450edef68

22 years agoRename the worker_stack_interrupt_all() function as worker_stack_terminate().
Aaron Bannert [Sun, 28 Apr 2002 23:28:52 +0000 (23:28 +0000)]
Rename the worker_stack_interrupt_all() function as worker_stack_terminate().
Also, broadcast a signal after we set the terminate flag on the worker stack.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94846 13f79535-47bb-0310-9956-ffa450edef68

22 years agoRemoved the "not_full" condition variable and associated conditional
Brian Pane [Sun, 28 Apr 2002 23:12:35 +0000 (23:12 +0000)]
Removed the "not_full" condition variable and associated conditional
logic from the file descriptor queue, now that we can rely on the
idle worker reference count to keep the listener from trying to
push connections into a full queue
Reviewed by: Aaron Bannert (concept)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94845 13f79535-47bb-0310-9956-ffa450edef68

22 years agoRemove unused variable.
Aaron Bannert [Sun, 28 Apr 2002 23:10:26 +0000 (23:10 +0000)]
Remove unused variable.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94844 13f79535-47bb-0310-9956-ffa450edef68

22 years agoSome more threadpool MPM changes:
Aaron Bannert [Sun, 28 Apr 2002 23:05:15 +0000 (23:05 +0000)]
Some more threadpool MPM changes:

- Add a "state" variable to the worker_wakeup_info struct. This is
  used to make sure that we act on the correct signal, and to know when
  to shut down a worker thread.
- Fix the call when the worker thread waits for a connection to use
  the new state variable and use mutexes around the cond_wait() call.
- Change the interrupt_all() call to set the WORKER_TERMINATED state.
- Add two AP_DEBUG_ASSERT() to make sure that we aren't waking up
  a worker thread before it is idle.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94843 13f79535-47bb-0310-9956-ffa450edef68

22 years agoClarify an incorrect statement about why we're purposfully putting
Aaron Bannert [Sun, 28 Apr 2002 22:32:17 +0000 (22:32 +0000)]
Clarify an incorrect statement about why we're purposfully putting
the signal inside of a mutex.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94842 13f79535-47bb-0310-9956-ffa450edef68

22 years agoSome threadpool fixes:
Aaron Bannert [Sun, 28 Apr 2002 22:25:16 +0000 (22:25 +0000)]
Some threadpool fixes:

- We don't need the listener_blocked flag, just check if the element
  we're adding makes the stack non-empty.
- When we are terminated, return APR_EOF; catch this event in the
  worker thread and the listener thread.
- When shutting down, always signal a potential listener thread.
- Wait to signal the listener thread until after we add the worker
  element to the stack.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94841 13f79535-47bb-0310-9956-ffa450edef68

22 years agoDetect APR_EINTR from ap_queue_pop() and avoid calling
Aaron Bannert [Sun, 28 Apr 2002 22:13:32 +0000 (22:13 +0000)]
Detect APR_EINTR from ap_queue_pop() and avoid calling
ap_queue_info_set_idle() more than once at a time per worker thread.
This fixes an assert coredump.

Submitted by: Aaron Bannert
Reviewed by: Brian Pane

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94840 13f79535-47bb-0310-9956-ffa450edef68

22 years agoWhen we signal a condition variable, we need to own the lock that
Aaron Bannert [Sun, 28 Apr 2002 21:35:12 +0000 (21:35 +0000)]
When we signal a condition variable, we need to own the lock that
is associated with that condition variable. This isn't necessary
for Solaris, but for Posix it is.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94839 13f79535-47bb-0310-9956-ffa450edef68

22 years agoFix a bug in the mod_status display caused by some uninitialized fields.
Bill Stoddard [Sun, 28 Apr 2002 21:09:36 +0000 (21:09 +0000)]
Fix a bug in the mod_status display caused by some uninitialized fields.
Prep for taking mpm_winnt to multi-process...

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94838 13f79535-47bb-0310-9956-ffa450edef68

22 years agoStyle cleanup (remove tabs, fix alignment).
Aaron Bannert [Sun, 28 Apr 2002 20:26:09 +0000 (20:26 +0000)]
Style cleanup (remove tabs, fix alignment).

Submitted by: Thom May <thom@planetarytramp.net>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94837 13f79535-47bb-0310-9956-ffa450edef68

22 years agoTypo fix.
Joshua Slive [Sun, 28 Apr 2002 16:40:57 +0000 (16:40 +0000)]
Typo fix.

Submitted by: Phil Forrest <forrest@physics.auburn.edu>

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94834 13f79535-47bb-0310-9956-ffa450edef68

22 years agokill a warning on Darwin for NONCE_LEN becoming a long int by math.
Roy T. Fielding [Sun, 28 Apr 2002 09:02:19 +0000 (09:02 +0000)]
kill a warning on Darwin for NONCE_LEN becoming a long int by math.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94833 13f79535-47bb-0310-9956-ffa450edef68

22 years agoIf a subreq added a filter (say INCLUDES) and the subreq was promoted via
Justin Erenkrantz [Sun, 28 Apr 2002 06:41:35 +0000 (06:41 +0000)]
If a subreq added a filter (say INCLUDES) and the subreq was promoted via
fast_redirect, the filter would still point at the subreq - rather than
the original r.  So, we must update any filters pointing at rr to be r.

This would cause lots of problems with mod_include with mod_dir requests
such as seen in PR 7966.  mod_include would be unsetting the headers_out
of rr instead of r.  But, we disassociate rr->headers_out and r->headers_out.
Therefore, the C-L header in r->headers_out would remain - even though it
bears no relation to what we will be outputting - causing problems.

This also now permits chunked-encoding of mod_dir/mod_include requests
which could never happen before and fixes the content-length problem
seen in PR 7966.

As hinted at in PR 7966, there is a race condition - if for some reason
the server stalls reading an included file (or even better, placing a
sleep in the cgi-bin script!), the invalid C-L may get propogated to the
client.

(Note that internal_internal_redirect has this same code fragment.)

PR: 7966

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94832 13f79535-47bb-0310-9956-ffa450edef68

22 years agoSimplify this little chunk of code since r is set to f->r earlier.
Justin Erenkrantz [Sun, 28 Apr 2002 06:24:53 +0000 (06:24 +0000)]
Simplify this little chunk of code since r is set to f->r earlier.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94831 13f79535-47bb-0310-9956-ffa450edef68

22 years agoMoved the recycled pool list from the queue to the queue_info structure.
Brian Pane [Sun, 28 Apr 2002 05:28:18 +0000 (05:28 +0000)]
Moved the recycled pool list from the queue to the queue_info structure.
The advantage of doing this is that it enables us to guarantee that the
number of ptrans pools in existence at once is no greater than the
number of worker threads, and that we'll never have to delete ptrans
pools.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94830 13f79535-47bb-0310-9956-ffa450edef68

22 years agoAdded a missing pool deletion case and simplified the conditionals
Brian Pane [Sun, 28 Apr 2002 04:48:43 +0000 (04:48 +0000)]
Added a missing pool deletion case and simplified the conditionals
for the error-case return (thanks to Justin for suggesting the
latter)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94829 13f79535-47bb-0310-9956-ffa450edef68

22 years agoMove a potentially expensive pool cleanup operation outside
Brian Pane [Sun, 28 Apr 2002 03:32:10 +0000 (03:32 +0000)]
Move a potentially expensive pool cleanup operation outside
the mutex-protected critical path of ap_queue_pop()

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94828 13f79535-47bb-0310-9956-ffa450edef68

22 years agoPreserve the original error, or if the unlock fails then use that
Aaron Bannert [Sun, 28 Apr 2002 03:20:06 +0000 (03:20 +0000)]
Preserve the original error, or if the unlock fails then use that
error instead.

Obtained from:  Justin Erenkrantz
Submitted by: Aaron Bannert

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94827 13f79535-47bb-0310-9956-ffa450edef68

22 years agoRemoved creation of unused struct
Brian Pane [Sun, 28 Apr 2002 01:58:26 +0000 (01:58 +0000)]
Removed creation of unused struct

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94826 13f79535-47bb-0310-9956-ffa450edef68

22 years agoModify the worker MPM to not accept() new connections until
Aaron Bannert [Sun, 28 Apr 2002 01:56:20 +0000 (01:56 +0000)]
Modify the worker MPM to not accept() new connections until
there is an available worker thread. This prevents queued
connections from starving for processing time while long-running
connections were hogging all the available threads.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94825 13f79535-47bb-0310-9956-ffa450edef68

22 years agoAdd a "queue_info" structure to the worker MPM. This is used to prevent
Aaron Bannert [Sun, 28 Apr 2002 01:45:00 +0000 (01:45 +0000)]
Add a "queue_info" structure to the worker MPM. This is used to prevent
the listener thread from accept()ing more connections than there are
available workers. This prevents long-running requests from starving
connections that have been accepted but not yet processed.

The queue_info is a simple counter, mutex, and condition variable. Only
the listener thread blocks on the condition, and only when there are no
idle workers. In the fast path there is a mutex lock, integer decrement,
and and unlock (among a few conditionals). The worker threads each notify
the queue_info when they are about to block on the normal worker_queue
waiting for some connection to process, which wakes up any sleeping
listener thread to go perform another accept() in parallel.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94824 13f79535-47bb-0310-9956-ffa450edef68

22 years agoFixed the creation of the worker threads' data structures
Brian Pane [Sun, 28 Apr 2002 00:34:49 +0000 (00:34 +0000)]
Fixed the creation of the worker threads' data structures

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94823 13f79535-47bb-0310-9956-ffa450edef68

22 years agomy_generation is in the shared scoreboard now.
Bill Stoddard [Sat, 27 Apr 2002 21:01:20 +0000 (21:01 +0000)]
my_generation is in the shared scoreboard now.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94822 13f79535-47bb-0310-9956-ffa450edef68

22 years agoAdded a vote on MPMs
Brian Pane [Fri, 26 Apr 2002 22:45:47 +0000 (22:45 +0000)]
Added a vote on MPMs

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94821 13f79535-47bb-0310-9956-ffa450edef68

22 years ago After review and testing against all of the PSDK examples (see
William A. Rowe Jr [Fri, 26 Apr 2002 22:23:06 +0000 (22:23 +0000)]
  After review and testing against all of the PSDK examples (see
  http://www.apache.org/~wrowe/ for commentary on building the
  examples and making them work) ... this disable-optimization
  should no longer be required.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94820 13f79535-47bb-0310-9956-ffa450edef68

22 years agoAdded a check to make sure that h_aliases is not NULL before we try to
Bradley Nicholes [Fri, 26 Apr 2002 21:55:41 +0000 (21:55 +0000)]
Added a check to make sure that h_aliases is not NULL before we try to
dereference it in the for(...) loop.  Attempting to dereference a NULL pointer
was causing a fault if there were no aliases found.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94819 13f79535-47bb-0310-9956-ffa450edef68

22 years agoApply a patch to compile cleanly again against changes to the shared memory
Graham Leggett [Fri, 26 Apr 2002 21:54:38 +0000 (21:54 +0000)]
Apply a patch to compile cleanly again against changes to the shared memory
implementation in APR.
PR:
Obtained from:
Submitted by: Eduardo Garcia Lopez <egarcia@stream18.com>
Reviewed by:

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94818 13f79535-47bb-0310-9956-ffa450edef68

22 years agoget closer to having apxs work from a binary distribution
Jeff Trawick [Fri, 26 Apr 2002 18:56:16 +0000 (18:56 +0000)]
get closer to having apxs work from a binary distribution
we need to copy libtool and instdso.sh verbatim, and we
need to edit config_vars.mk and apxs

still broken: "httpd -l" as invoked by apxs can fail since
support libraries (apr, aprutil, etc.) are probably not
findable

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94817 13f79535-47bb-0310-9956-ffa450edef68

22 years agoUpdate release info.
Justin Erenkrantz [Fri, 26 Apr 2002 17:43:30 +0000 (17:43 +0000)]
Update release info.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94816 13f79535-47bb-0310-9956-ffa450edef68

22 years agoEven though this is in APR, it is causing big problems in Apache.
Aaron Bannert [Fri, 26 Apr 2002 17:30:05 +0000 (17:30 +0000)]
Even though this is in APR, it is causing big problems in Apache.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94815 13f79535-47bb-0310-9956-ffa450edef68

22 years agoThe worker's fdqueue is now a queue again.
Aaron Bannert [Fri, 26 Apr 2002 17:17:42 +0000 (17:17 +0000)]
The worker's fdqueue is now a queue again.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94814 13f79535-47bb-0310-9956-ffa450edef68

22 years agoConvert the worker MPM's fdqueue from a LIFO back into a FIFO. Since
Aaron Bannert [Fri, 26 Apr 2002 17:13:51 +0000 (17:13 +0000)]
Convert the worker MPM's fdqueue from a LIFO back into a FIFO. Since
elements in the queue represent accept()ed connections, we want them
to be processed in the order that they were received.  (I erroneously
converted it to a LIFO quite awhile ago in the hopes that it would
improve cache efficiency.)

Remember to perform a make clean in the worker directory after this patch,
since this patch changes the size of the fd_queue_t object (which is
allocated in worker.c).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94813 13f79535-47bb-0310-9956-ffa450edef68

22 years agofix a compile break on EBCDIC machines
Jeff Trawick [Fri, 26 Apr 2002 14:43:18 +0000 (14:43 +0000)]
fix a compile break on EBCDIC machines

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94812 13f79535-47bb-0310-9956-ffa450edef68

22 years agoget basic HTTP proxy working on EBCDIC machines
Jeff Trawick [Fri, 26 Apr 2002 12:29:38 +0000 (12:29 +0000)]
get basic HTTP proxy working on EBCDIC machines

(I would bet that there is more work to do throughout proxy, but at least
it can serve some pages now)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94811 13f79535-47bb-0310-9956-ffa450edef68

22 years agoSwitch back from atomic_cas to mutexes, based on all the current
Brian Pane [Fri, 26 Apr 2002 07:14:26 +0000 (07:14 +0000)]
Switch back from atomic_cas to mutexes, based on all the current
portability challenges with atomics

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94810 13f79535-47bb-0310-9956-ffa450edef68

22 years agoSome of these worker bugs may or may not be showstoppers, but I'll let
Aaron Bannert [Fri, 26 Apr 2002 05:12:29 +0000 (05:12 +0000)]
Some of these worker bugs may or may not be showstoppers, but I'll let
Striker decide that. I hope to have the top two of these finished in
the next 24 hours, but the third I may need some help with.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94809 13f79535-47bb-0310-9956-ffa450edef68

22 years agoget mod_proxy to build on EBCDIC machines
Jeff Trawick [Thu, 25 Apr 2002 22:12:51 +0000 (22:12 +0000)]
get mod_proxy to build on EBCDIC machines

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94808 13f79535-47bb-0310-9956-ffa450edef68

22 years agoremove a goto
Greg Ames [Thu, 25 Apr 2002 20:51:49 +0000 (20:51 +0000)]
remove a goto

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94807 13f79535-47bb-0310-9956-ffa450edef68

22 years agoTypoed HTML tag. </ br> -> <br />
Rich Bowen [Thu, 25 Apr 2002 20:08:31 +0000 (20:08 +0000)]
Typoed HTML tag. </ br> -> <br />

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94806 13f79535-47bb-0310-9956-ffa450edef68

22 years agoAdded example of the Redirect status syntax.
Rich Bowen [Thu, 25 Apr 2002 20:04:19 +0000 (20:04 +0000)]
Added example of the Redirect status syntax.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94805 13f79535-47bb-0310-9956-ffa450edef68

22 years agofix a compiler error with picky compilers that (correctly) don't let
Jeff Trawick [Thu, 25 Apr 2002 19:57:32 +0000 (19:57 +0000)]
fix a compiler error with picky compilers that (correctly) don't let
you add to void *

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94804 13f79535-47bb-0310-9956-ffa450edef68

22 years agoCorrect SSI time format reference.
Joshua Slive [Thu, 25 Apr 2002 19:00:20 +0000 (19:00 +0000)]
Correct SSI time format reference.

Submitted by: masao@ulis.ac.jp (Masao Takaku)
PR: 8449

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94803 13f79535-47bb-0310-9956-ffa450edef68

22 years agoAllow mod_unique_id to work on systems with no IPv4 address
Jeff Trawick [Thu, 25 Apr 2002 18:04:40 +0000 (18:04 +0000)]
Allow mod_unique_id to work on systems with no IPv4 address
corresponding to their host name.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94802 13f79535-47bb-0310-9956-ffa450edef68