6f2b40c28d377deb94c65a9787d8a1bf0de43078 1629925 |
|
07-Oct-2014 |
ylavic |
core: ensure that MPMs return an error on runtime failure and hence that
httpd's main process also exits with an error. |
6a435d85f8664550c87fb09af25d54edd93facef 1621417 |
|
30-Aug-2014 |
jailletc36 |
Fix printf format spotted by cppcheck.
Untested. |
b2c17021012bc4f7cd8e374c6bd72b926737320f 1612068 |
|
20-Jul-2014 |
jailletc36 |
Add missing APLOGNO.
Refactor some lines to keep APLOGNO on the same line as ap_log_error, when applicable.
Split lines longer than 80.
Improve alignment. |
776e24ab929f0ce906e43a0d2cf4b1f7a2d6b56b 1599603 |
|
03-Jun-2014 |
jim |
Now allow MPMs to call ap_log_common() |
1f49339d35eca77d159b0427dd4ee9ff6a4080c8 1405973 |
|
05-Nov-2012 |
jailletc36 |
cppCheck: kill two warnings about incorrect printf parameters.
'worker_thread_count' is unsigned |
185aa71728867671e105178b4c66fbc22b65ae26 1209766 |
|
03-Dec-2011 |
sf |
Add lots of unique tags to error log messages |
3fa816e4832a1c70600bdfd6fc5ef60e9f1c18bb 1137744 |
|
20-Jun-2011 |
sf |
Rename MaxClients to MaxRequestWorkers which describes more accurately what
it does. |
8abb6edf46e43b7bf1af3eb4c006a644f7c4bec0 1103595 |
|
16-May-2011 |
trawick |
fill in conn_rec::current_thread for WinNT, NetWare, and OS/2 MPMs |
925a6d92173ab96cdb0a8976c7aac13ef809e218 1096609 |
|
25-Apr-2011 |
trawick |
Add child_status hook for tracking creation/termination of MPM child
processes. Add end_generation hook for notification when the last
MPM child of a generation exits.
end_generation is implemented completely by core using the
child_status hook run by the MPM.
simple and mpmt_os2 MPMs don't currently run the child_status
hook, so neither hook is invoked with those MPMs. |
7f08995a692fc044855ae5606904fb0a3506edcc 1086948 |
|
30-Mar-2011 |
trawick |
the mpm-note-child-killed hook is just for state sync between
ap_{reclaim,relieve}_child_processes() and their callers
the NetWare and OS/2 MPMs don't use that |
8f29f672255fe76964af126f9ac8c3c864274fa0 1086293 |
|
28-Mar-2011 |
trawick |
mpm_common.c implements a handful of config directives; the
related state has to be re-initialized to the default values
at pre-config time, but that was handled inconsistently by
the MPMs, resulting in unexpected behavior when some of the
directives were removed across restart
move that necessary initialization from the MPMs to common
code run from core's pre-config; MPMs that need to override
defaults can do so by running after core's pre-config (the
NetWare MPM now does that)
the DEFAULT_MAX_REQUESTS_PER_CHILD compile setting wasn't useful
enough to keep
the simple MPM wasn't consistent in which of these directives
were respected and which weren't, and that hasn't changed
(see procmgr.max_requests_per_child vs. ap_max_requests_per_child) |
b647ad5f60102a97086d0aa4582d357bedad3a05 1004311 |
|
04-Oct-2010 |
fuankg |
Removed duplicate global; removed obsolete cast. |
09a1167b8cb70e15be9f661f9e83ee33cfe062de 991588 |
|
01-Sep-2010 |
fuankg |
Added require prototypes conditionally to CFLAGS for NETWare;
added header includes for getting protos. |
c3e233736c4a453cbb2166a041f779e86230630a 982050 |
|
04-Aug-2010 |
sf |
remove more unused variables
revove some obsolete comments
netware file is untested |
1017d9c4dfb131d49ac4cf84eb60635670279b00 981086 |
|
31-Jul-2010 |
sf |
Code cleanup: replace strncpy by apr_cpystrn or apr_pstrmemdup
Submitted by: Takashi Sato <takashi lans tv com>
PR: 43432 |
36ef8f77bffe75d1aa327882be1b5bdbe2ff567a 951895 |
|
06-Jun-2010 |
sf |
Use the new APLOG_USE_MODULE/AP_DECLARE_MODULE macros everywhere to take
advantage of per-module loglevels |
bd27541a0c96caa881f17a490e23cdd220d480c8 910684 |
|
16-Feb-2010 |
poirier |
Log command line on startup, so there's a record of command line
arguments like -f. Suggested by Shaya Potter. [Dan Poirier]
PR: 48752 |
0cd50497d517c7de299c204e600dd340ead7d867 882943 |
|
21-Nov-2009 |
trawick |
remove dead code related to the accept mutex |
5c41f042c648e1e44b54d0d1b77a48ff16ef890d 831951 |
|
02-Nov-2009 |
trawick |
follow up r791309 with additional changes to accommodate the new MPM interfaces
(some old API variables are now private, support retrieval of the MPM generation,
implement the mpm_note_child_killed hook) |
b5b31852ab27739ab90febad74faefe8dab5b24e 791309 |
|
05-Jul-2009 |
fuankg |
first hacks to make mpm_netware usable again; not ready yet! |
6e68ad13348b2b614939ae365470728026ff38be 760403 |
|
31-Mar-2009 |
trawick |
stop exporting APACHE_MPM_DIR to modules -- unclear why this was ever necessary, and it
makes no sense with loadable MPMs
axe the unnecessary MPM_DIR build variable
move the stray APACHE_SUBST(MPM_LIB) from configure.in to server/mpm/config.m4, where
the other MPM_foos are handled |
a96f477774c960ff59a3741f5f43e8fff90b9412 758671 |
|
26-Mar-2009 |
trawick |
axe the unnecessary AP_MPM_HARD_LIMITS_FILE |
d6e81217d873dc3b87fc4ffa5fbac2fad4191a15 645455 |
|
07-Apr-2008 |
pquerna |
Remove all references to CORE_PRIVATE. |
978b1ab104c2c8e94e427203eef23ebe63231636 645437 |
|
07-Apr-2008 |
pquerna |
Remove ap_graceful_stop_signalled from all MPMs. |
3e155218733389e7b1ea3a9ffd0aea533fd929ce 491907 |
|
02-Jan-2007 |
chrisd |
Destroy pmain pool when exiting ap_mpm_run() so that cleanups
registered in modules' child_init hooks are performed (e.g.,
mod_log_config and mod_dbd). |
1ce78cf71b5baaf2c1ab48e818cb1f2397df5010 440337 |
|
05-Sep-2006 |
trawick |
Replace ap_get_server_version with ap_get_server_banner() and
ap_get_server_description().
High-level summary:
The full server version information is now included in the error log at
startup as well as server status reports, irrespective of the setting
of the ServerTokens directive.
Third-party modules must now use ap_get_server_banner() or
ap_get_server_description() in place of ap_get_server_version(). |
4bd465052c4a0c8d41e573ee7a90c312d980355f 431460 |
|
15-Aug-2006 |
chrisd |
Introduce a check_config phase between pre_config and open_logs,
to allow modules to review interdependent configuration directive
values and adjust them while messages can still be logged to the
console.
The open_logs phase is already used somewhat for this purpose by
certain MPMs (winnt, prefork, worker, and event) but only by forcing
their functions ahead of the core ap_open_logs() function, and
since this phase runs after the ap_signal_server function during startup,
it can not be used to generate messages on the console when restarting.
Add the check_config phase to mod_info and mod_example.
Handle relevant MPM directives during this phase and format messages
for both the console and the error log, as appropriate. Bounds and sanity
checks on the values of the MPM directives are handled in sequence in
this phase instead of in the various directive handling functions, since
those functions (e.g., set_max_clients()) may not be called at all if their
directives do not appear in the configuration files, and even if they
are called, there is no guarantee that this will occur in any particular
order.
Remove from the worker and event MPMs the code in the pre_config phase
that alters the configuration node tree by re-ordering ThreadsPerChild
ahead of MaxClients. This code is effective but insufficient; for
example, if ServerLimit follows MaxClients, the test against server_limit
in set_max_clients() is invalid. (In practice, this only results in
incorrect or absent warnings on the console, because server_limit is
set to its configured value when the main loop re-runs the configuration
process.)
Prevent ap_threads_per_child from exceeding thread_limit in the
winnt, worker, and event MPMs. This situation could occur if
ThreadsPerChild was not specified in the configuration files and
ThreadLimit was set to a value smaller than DEFAULT_THREADS_PER_CHILD,
because set_threads_per_child() would never be called and therefore
its bounds check against thread_limit would not be performed.
Remove from the winnt, prefork, worker, and event MPMs the
changed_limit_at_restart flag. Set the first_server_limit and
first_thread_limit values during the first execution of the check_config
function, and use them to detect changes to ServerLimit and ThreadLimit
across restarts and issue appropriately formatted warnings. Remove the
comments about the error log being a "bit bucket"; this was true when
the code was originally committed in r92530 but that was due to a bug
fixed in r92769.
Be consistent about setting all MPM configuration directive values in the
pre_config phase.
Rephrase and reformat the console and log file messages relating to
MPM configuration directives to be consistent across all MPMs. Use
briefer messages when logging to the error log than to the console.
Update miscellaneous stale comments and messages (e.g., reference to
daemons_min_free in worker and event MPMs, "prefork open_logs" in
winnt MPM, and StartServers in netware MPM).
The winnt, netware, beos, and mpmt_os2 MPMs should be tested by developers
with access to those platforms, especially the winnt MPM, which has
unique logic with respect to distinguishing between parent and child
processes during the configuration phases.
Update the English documentation for the worker MPM's ThreadsPerChild
directive, which no longer needs to precede other MPM directives in the
configuration files if it has a non-default value. The German (.de) and
Japanese (.ja) translations should be updated by developers fluent in
those languages. |
842ae4bd224140319ae7feec1872b93dfd491143 420983 |
|
11-Jul-2006 |
fielding |
update license header text |
3d81f57512275ca06a60a9bcbd23c1f8b429fdf2 395228 |
|
19-Apr-2006 |
colm |
Update the copyright year in all .c, .h and .xml files |
f05787953018140838ad51456c86c965d6a86267 345053 |
|
16-Nov-2005 |
jim |
No functional change: remove "internal" tab spacing/formatting. |
17dc8282ea6b3ad1bbc661b498de9ec2e9987ede 332316 |
|
10-Nov-2005 |
jim |
No functional change: more indenting/formatting changes due to
tabbing |
e8f95a682820a599fe41b22977010636be5c2717 332306 |
|
10-Nov-2005 |
jim |
No functional Change: Removing trailing whitespace. This also
means that "blank" lines consisting of just spaces or
tabs are now really blank lines |
43c3e6a4b559b76b750c245ee95e2782c15b4296 332305 |
|
10-Nov-2005 |
jim |
No functional change: simple detabbing of indented code. |
9558e9fdb620dd6f42ca93beac6c3ab734086706 161368 |
|
15-Apr-2005 |
bnicholes |
Allow httpd on NetWare to build using either the standard socket libraries or the Winsock libraries. |
3df01b47d6691ef34fbec60260d8f49dbed41a35 156556 |
|
08-Mar-2005 |
bnicholes |
Make sure that the secure listen sockets that are created and injected into the ap_listeners lists by mod_nw_ssl are handled correctly so that they remain open and reused across restarts. |
08cb74ca432a8c24e39f17dedce527e6a47b8001 151408 |
|
04-Feb-2005 |
jerenkrantz |
Update copyright year to 2005 and standardize on current copyright owner line. |
fbbcd774dd780a710e1687ecf985a94e1c94dfc2 106766 |
|
27-Nov-2004 |
bnicholes |
Fixing various compiler error when compiling against the latest version of LibC SDK |
8ab4d23ce5b402430c92e7540a1953523afbae4f 103388 |
|
14-Apr-2004 |
bnicholes |
Fix a typo and clean up some tab characters.
Submitted by: Guenter Knauf <gk@gknw.de> |
422a2e9e48a594c7d46d62410e45651a7a994430 103029 |
|
19-Mar-2004 |
trawick |
*) SECURITY: CAN-2004-0174 (cve.mitre.org)
Fix starvation issue on listening sockets where a short-lived
connection on a rarely-accessed listening socket will cause a
child to hold the accept mutex and block out new connections until
another connection arrives on that rarely-accessed listening socket.
With Apache 2.x there is no performance concern about enabling the
logic for platforms which don't need it, so it is enabled everywhere
except for Win32. [Jeff Trawick]
(already in 2.0.49, propagating to mirrors now) |
8b6db5ee2c727568cccb16a035c90ab970d310fe 103013 |
|
17-Mar-2004 |
bnicholes |
Adapt the mpm_netware version of the ThreadStackSize directive to the common version |
006e0323d4d432e33ee854c9fbb2de1011aac450 102986 |
|
16-Mar-2004 |
bnicholes |
Report the NetWare socket error since we are using native socket calls |
6de8046f8f7e07cd83895a528df25d977e502c76 102619 |
|
09-Feb-2004 |
nd |
fix name of The Apache Software Foundation |
13427b1cb4b519abfc7d6a5e6b5bced584bf9808 102584 |
|
08-Feb-2004 |
nd |
fix copyright dates according to the first checkin |
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dc 102525 |
|
06-Feb-2004 |
nd |
apply Apache License, Version 2.0 |
c31c1eba9cad174e94bf0b436a505ca888d244fa 102487 |
|
02-Feb-2004 |
clar |
Commenting out the DBINFO define |
a4b7c1da4db700744951841a7424809a3025e9b8 102486 |
|
02-Feb-2004 |
clar |
Adding missing parenthesis in DBINFO code |
26a4456dd6f1a5d7d7fff766551461a578687c4a 102135 |
|
01-Jan-2004 |
nd |
update license to 2004. |
345aaf5706b61fecdedf85f06936b4ebe2f441e0 102078 |
|
16-Dec-2003 |
bnicholes |
Added mpm_state to ap_mpm_query() for the NetWare MPM |
e3b16e26fba90ef11297cee97fe437c86bd4a0f2 101988 |
|
04-Dec-2003 |
bnicholes |
Fix the display of the terminate and restarting console messages |
eef94d79a8503d36dfde6d94fd2cc468f5cb5616 101902 |
|
26-Nov-2003 |
bnicholes |
Add restart and shutdown thread counters to the console display |
c2d0a204f2777824f9c49c30296cfc2ae8ff4b0b 101173 |
|
06-Sep-2003 |
jwoolley |
revert my previous commit. when 2.0 and 2.1 were not in sync, i went with
what was in 2.0 because it was more recent, but it turns out that was
the wrong choice. reverts to 2.0 to follow |
46c2e8f4d287007ab6894025443f2d1f2cc38c51 101164 |
|
05-Sep-2003 |
jwoolley |
forward-port Brad's commit to the 2.0 branch that gets rid of the
explicit bucket_alloc_destroy(), which is redundant |
1fbf6ba0f5207e6637b49f9a9dfcc779bbe952a9 101154 |
|
03-Sep-2003 |
trawick |
switch to APR 1.0 API (which is still in flux)
because of the changes to the argument lists of apr_mmap_dup and apr_socket_create,
2.1-dev won't build with apr and apr-util's 0.9 branch anymore |
e4d36aa1eb0631a1b696c7a70d696f9c869bddcc 101122 |
|
28-Aug-2003 |
jwoolley |
Updated the various MPM's to use the new bucket_alloc_create_ex API
when necessary. Which is to say that it's necessary in all cases except
for prefork, where the change to apr-util to have it use the allocator
from the pool passed in is already sufficient.
Reviewed by: Jean-Jacques Clar, Sander Striker, Brad Nicholes |
ebd793fbca6d74eb63412bdc974a0af9b972ed8d 101117 |
|
28-Aug-2003 |
bnicholes |
Make sure that the global ap_max_mem_free is initialized along with the
other MPM globals whenever HTTPD is started or restarted. |
0110ff70d8ad94ea7e36dceea84b468ef1309987 100156 |
|
03-Jun-2003 |
bnicholes |
Simplify the per-thread pool handling in the NetWare MPM |
be93fc624b2589e182b0f88fa8475cc4aebbfb81 99942 |
|
20-May-2003 |
bnicholes |
Make sure that bucket allocator for each worker thread is created from a thread
specific pool. This prevents multiple threads from trying to clean up the same
pool at the same time. |
b89b35cce5ae706ee1ec75425799edf7f694f7fb 99065 |
|
26-Mar-2003 |
bnicholes |
Need to report a select() error vs a timeout. Also avoid hogging the CPU on
an error. |
f26301954c77ade53145582e85f099d95f9db88a 99017 |
|
18-Mar-2003 |
bnicholes |
Fixed a small logic problem when printing out the console command help
Submitted by: Ulrich Neumann <U_Neumann@gne.de> |
33bdcae1f7a1a65e351dda2a766a0cf28b1e695d 98573 |
|
03-Feb-2003 |
nd |
finished that boring job:
update license to 2003.
Happy New Year! ;-)) |
1944ddbbad413b60307d66081b022a3eee5f04cf 98535 |
|
29-Jan-2003 |
bnicholes |
Enabled the -n parameter on NetWare to allow the administrator to rename
the console screen |
8f4a965eb33d3fae938e4ecfc6b1139454750df8 97898 |
|
12-Dec-2002 |
bnicholes |
Register for the SERVERDOWN event to allow Apache to shutdown gracefully
when the NetWare OS is shutdown |
6ce23739c08644f691d4333625043f67578cf9c7 97647 |
|
25-Nov-2002 |
bnicholes |
Force the screen to close on exit() if the -E option was specified on the
command line |
33bf0c0d622901218940c925b9ff354272eebdc1 97507 |
|
13-Nov-2002 |
bnicholes |
Don't hold the Apache screen open when it exits with an error if all of the error
messages are going to a file anyway. In other words, don't hold the screen
open if the -E <filename> command line parameter is used. |
65a99b1db8af484b996b11cd3a73e3192bce145d 97207 |
|
14-Oct-2002 |
bnicholes |
Switched to the APR_STATUS_IS_XXX macros |
ecc16907392dd9a7a11037d54aa463cc1149788a 97067 |
|
03-Oct-2002 |
bnicholes |
Don't bother destroying the memory pools and buckets for each thread at
during shutdown since it will all be cleaned up at termination anyway. |
042973a90e42835f7b764ded934edfafae87e8b9 96560 |
|
28-Aug-2002 |
bnicholes |
Removed unnecessary pool cleanup after a restart or shutdown |
74e3c3e110c5da220a384579543086f1519632a6 96172 |
|
24-Jul-2002 |
bnicholes |
Hold the Apache screen open on NetWare if exit() is called for any reason
during initialization and configuration of the main Apache process. |
9179fa90e821c964d10f28b97fc6acee776af7cf 96057 |
|
15-Jul-2002 |
wrowe |
http occurances to update for apr_socket_opt_get/set |
bdbafc44d060509e86f0cc56ff4d19579438f846 95954 |
|
04-Jul-2002 |
striker |
Add a new directive: MaxMemFree. MaxMemFree makes it possible
to configure the maximum amount of memory the allocators will
hold on to for reuse. Anything over the MaxMemFree threshold
will be free()d. This directive is usefull when uncommon large
peaks occur in memory usage. It should _not_ be used to mask
defective modules' memory use. |
b6215bd93a599b7962b7ed6387b4990de3a8adb5 95893 |
|
26-Jun-2002 |
bnicholes |
Re-architected the select()/accept() loop to allow all threads to rely on select() to
signal when data is ready rather than only allowing a single thread at a time to
be signaled by select(). This allows Apache to pull the requests off of the
listen queue as fast as winsock will allow without latency introduced by the
accept mutex. |
b26781e595625911fc8fc8215133ad2285ed75d8 95568 |
|
07-Jun-2002 |
jim |
Now that we have the functionality in apr, we can now have 2.0's
startup message regarding AcceptMutex (what we are using and what
the default is) "fully" match what is present in 1.3.
PR:
Obtained from:
Submitted by:
Reviewed by: |
0fa3ef0701a92c35f594a810eaf3808be7a26cda 95458 |
|
01-Jun-2002 |
bnicholes |
Switched to using atomic operations for tracking the active threads rather
than having to lock and unlock a mutex. |
6b28bf6dd38f5c48537960e1c7e97d1fdf0c084b 95373 |
|
30-May-2002 |
striker |
Catch up with the apr_allocator_set_owner -> apr_allocator_owner_set renames
in APR. |
4054c01b59274ea24974fd3399f71c9d47373ead 95207 |
|
22-May-2002 |
bnicholes |
Fixing a memory leak with the threads bucket_allocator. We were allocating
too much and not freeing up enough. On a thread exit the bucket and the
transaction pool need to be cleaned up. When the MPM exits, the main pool
needs to be cleaned up. |
2d399cd7535887fceaa9f8f116eb98ce68ddd602 95149 |
|
17-May-2002 |
trawick |
stop using APLOG_NOERRNO in calls to ap_log_?error() |
a8d5767403f4ba224becb84ff1b3a286370550df 94880 |
|
30-Apr-2002 |
bnicholes |
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. |
8eddc914b28a460d7c590331ee9313d1fd9ae125 94660 |
|
15-Apr-2002 |
bnicholes |
Add some additional shutdown synchronization so that we don't get the OS
message to force the module to unload. |
66ebb479bf0cd93e2e6f7887013e124d45299f2f 94627 |
|
13-Apr-2002 |
bnicholes |
Readjustment of where the bucket is being allocated now that they are being
cleaned up. Need to move the call to after apr_pool_clear() so that it doesn't
get cleanup too soon and never reallocated. |
efebb67d10e592c2491fd4f85635c7dda4c30d7c 94593 |
|
10-Apr-2002 |
bnicholes |
Closed up some holes where a thread could escape and exit without releasing
the mutex. This would leave all of the other threads deadlocked. |
8834d44b55462d0abe2d18aec437d5a99405a343 94479 |
|
06-Apr-2002 |
bnicholes |
Added a call to apr_bucket_alloc_destroy() to the clean_child_exit() code that
is called when each worker thread terminates. This stopped the memory leak. |
74df101934ab29894e70535e7aaacb6d066a6bae 94388 |
|
02-Apr-2002 |
bnicholes |
Check for a NULL pointer in the case of the OS address space |
4264313d9ec7952b39cc70e961a99d1ea4938d69 94369 |
|
02-Apr-2002 |
bnicholes |
Replaced a hack for getting the address space with the real API |
c5fdaba2e790a0a351d796b5fe3dcfb585be1ba2 94306 |
|
29-Mar-2002 |
jim |
The old, legacy (and unused) code in which the scoreboard was totally
and completely contained in a file (SCOREBOARD_FILE) has been
removed. This does not affect scoreboards which are *mapped* to
files using named-shared-memory at all. This implies that scoreboards
must be based, at some level, on native shared memory (mmap, shm_open,
shmget, whatever), but the code has assumed that for quite awhile
now. Having the scoreboard be *based* on a file makes no sense today.
PR:
Obtained from:
Submitted by:
Reviewed by: |
2fc50921b88defeb7127985dfe4b4130175e069e 94304 |
|
29-Mar-2002 |
jwoolley |
BUCKET FREELISTS
Add an allocator-passing mechanism throughout the bucket brigades API.
From Apache's standpoint, the apr_bucket_alloc_t* used throughout a given
connection is stored in the conn_rec by the create_connection hook. That
means it's the MPM's job to optimize recycling of apr_bucket_alloc_t's --
the MPM must ensure that no two threads can ever use the same one at the
same time, for instance. |
836d6aa72d33f9bfc8e277577824d4103fc10173 94062 |
|
20-Mar-2002 |
jim |
Fold the compiled-in knowledge of the allowable AcceptMutex settings into
its help entry. Requires the use of a extern string rather than a function
call for the initialization to be valid in the macro (Thx to Jeff!).
In the meantime, bump down the error logging until we deal with true
default and configured setting information ala 1.3.
PR:
Obtained from:
Submitted by:
Reviewed by: |
b4e4d76bf454e1b603b410110356dbcf12f3bc42 94055 |
|
20-Mar-2002 |
jim |
Bring 2.0 up to parity, a bit, with how much info we provide to
the admin regarding valid values for AcceptMutex. Should also
tell 'em what "default" actually maps to, but that can wait.
PR:
Obtained from:
Submitted by:
Reviewed by: |
de379472efa6c1f8b8e9cafbd8997f3c6a3ee00a 94039 |
|
20-Mar-2002 |
wrowe |
The pre_mpm hook creates server-lifetime objects (or at least, for the
generations across graceful restarts.) They should use the process pool. |
a462faa9b49ab5afbba870be13594ab2457fa54a 93943 |
|
15-Mar-2002 |
striker |
Update the mpms to call the new allocator/pools API |
c71d98d9fe23826dfc3ee53bbfa39c3f121a839b 93934 |
|
14-Mar-2002 |
bnicholes |
Added code to extract the current address space name so that each
instance of Apache can be identified by the address space that it is running in |
bc8fd1b0b1afdf89b8d28eefa8cd74e26ba97986 93918 |
|
13-Mar-2002 |
fielding |
Update our copyright for this year. |
2f1be60b7ec2d3bbb5515d34754ba5cfe65fdef7 93434 |
|
15-Feb-2002 |
aaron |
Implement new ScoreBoardFile directive logic. This affects how we
create the scoreboard's shared memory segment. We now have the best of
both worlds:
if config specifies ScoreBoardFile
create name-based shared memory, errors are fatal
else /* we get to choose */
create anonymous shared memory
if ENOTIMPL
create name-based shared memory from DEFAULT_SCOREBOARD
else
errors are fatal
This gives us the flexibility to have anonymous shared memory (on platforms
that support it) as well as name-based shared memory when third-party
programs want access to our scoreboard.
The ap_scoreboard_fname static variable is now owned by the scoreboard.c
file, and no longer by the MPMs. The MPMs MUST NOT set ap_scoreboard_fname
to a default, since that will override the default creation logic and
only allow name-based segments.
Submitted by: Aaron Bannert
Reviewed by: Justin Erenkrantz |
8fc4baf8e3c451ea94ef1c56e4181a7ab1c2d751 93397 |
|
13-Feb-2002 |
bnicholes |
Create a new pool allocator for each worker thread |
2da490db9ba04361f331db8fb54869893e63383f 93315 |
|
06-Feb-2002 |
bnicholes |
Implemented the handling of the SIGABRT signal. |
19a01f46d8da4d6e80ddd54c99d50e3bce5217cb 93171 |
|
01-Feb-2002 |
stoddard |
Reintroduce the create_connection hook. This hook is required to enable
modules to completely take over all network i/o from the core. |
4e692b4a3b2030db8c188b994ebdaa374a6d467c 93161 |
|
01-Feb-2002 |
bnicholes |
Fixed the unload process so that the console command gets properly
unregistered. This fixes the 88 unreleased resources after termination |
8749ce39c36c65bc66e849cd101d3e244ef55cec 93139 |
|
31-Jan-2002 |
bnicholes |
Removed the call for now to shutdown the listeners so that threads don't end
up stuck on blocking socket calls during shutdown. I need to figure out a
cleaner way of preventing this problem. |
4fbb89a070c82e489830233bde6bc78ddf179978 93087 |
|
29-Jan-2002 |
stoddard |
This patch restores most of Ryan's patch (11/12/2001) to remove the
client_socket from the conn_rec. Diffs from Ryan's patch include:
- rename the create_connection hook to install_transport_filters
- move the point of invocation of the hook till after the call to
after ap_update_vhost_given_ip to enable the hook to use vhost
config info in its decision making. |
417f504d4d11631c0d062be85347f82a26c88677 93063 |
|
29-Jan-2002 |
aaron |
The pre_config hook now takes a return value. This allows modules to
cause the server to bail out under error conditions. |
7a95e47ff0d0e4306df0901d56131b49dca5691e 93055 |
|
28-Jan-2002 |
trawick |
fix the problem where a scoreboard init failure could leave
mod_cgid stranded
a pre_mpm hook can now return failures, so problems in
ap_create_scoreboard percolate back to a place where Apache
can exit cleanly |
b393bdb2e1eabbe4b9b37c5eaeeeca799b2eb324 93050 |
|
27-Jan-2002 |
stoddard |
Remove the create_connection hook and put the client_socket back into the
conn_rec. The create_connection_hook has a design flaw that prevents it
from making decisions based on vhost information. |
ef51c0782d5ae6867ee33fab6ed29fc4745ed66f 92917 |
|
19-Jan-2002 |
bnicholes |
Updated the command line keyword to Apache2 and also modified the
shutdown code for unloading the NLM |
e970053cef302d9a33c4d6f848adc004cc2e916d 92852 |
|
14-Jan-2002 |
bnicholes |
Implemented a checkunload callback to allow apache to be unloaded using
the Unload console command. Also changed the nlm name and console
command to APACHE2. |
66a6ca2064281d93f6b7e8393ca2622458e21ed3 92832 |
|
12-Jan-2002 |
bnicholes |
Combination of blocking and nonblocking accept loop |
26dfa083a1662d57ba7cc410eec4e0696b9be469 92791 |
|
10-Jan-2002 |
wrowe |
This patch eliminated from the _SHARED_ segment of the scoreboard all
pointer math. This is required for portable scoreboards.
vhost becomes the 'vhost name string' so it now survives ap_generation
clicks. next was apparently never used.
This patch also accounts for the changes to the apr_shm api, and gives
Win32 the magic of a shared scoreboard.
Breakage aplenty on non-win32 platforms, I suspect, but this radical
surgery, and culling of unused functions, was really, really needed. |
4ceb1c7cc31a6fa57903b73d23201f84ba41727e 92737 |
|
04-Jan-2002 |
bnicholes |
Reworked the accept() loop to avoid an extra call to select() just to
determine if there is work to do. Made the calls to accept() non-blocking. |
af2e7761652486740d2fb68e545254853514fce5 92533 |
|
19-Dec-2001 |
trawick |
for the netware MPM, move HARD_THREAD_LIMIT back to mpm_default.h where
the other user-tunable compile-time parameters are
HARD_SERVER_LIMIT stays in mpm_netware.c since it can't really be changed |
abb33f4c0ab7b5e2a1b404b913776a3f5487d69b 92532 |
|
19-Dec-2001 |
bnicholes |
Reworked the select/accept loop to try to rely less on select to determine
if there is work to do. |
b8ff23abbab16fe2e1202f1053285259d081f004 92513 |
|
18-Dec-2001 |
trawick |
fix some references to the wrong constant (HARD_SERVER_LIMIT vs.
HARD_THREAD_LIMIT) |
ca47a2b6bcea23e8af185c68f256dcbbfd2a0f9d 92512 |
|
18-Dec-2001 |
trawick |
Change core code to allow an MPM to set hard thread/server
limits at startup. |
17c23d907df1d639f6851a46a9b1d20f06815aef 92429 |
|
11-Dec-2001 |
bnicholes |
Clean up GNU compiler issues on NetWare
Submitted by: Pavel Novy |
ab30a8943a69ee49de7c7de7398ffdfec76d90cf 92035 |
|
19-Nov-2001 |
bnicholes |
Changed a variable name to avoid a NetWare LibC global conflict.
Submitted by: Pavel Novy [novy@feld.cvut.cz] |
d7d24786c80ad1ae337b916a0a44b2a7b8fcb54d 91968 |
|
15-Nov-2001 |
rbb |
Pull lingering close out of the pool cleanup phase. This was causing too
many bugs. Instead, it is called where it used to be called. I have
abstracted some of the logic out of the lingering close so that it gets
the socket from the connection using the core's conn_config vector. This
is in anticipation of a change to use a hook for the lingering close,
which I hope to do soon. |
cc5e9d68a9cbb9fe844aed4b2f815eb09050d06f 91913 |
|
13-Nov-2001 |
rbb |
Add the server_rec argument back to the create_connection hook.
Submitted by: Greg Stein |
f4d8b0f32a6e28c425a3460b12ee3cc2a760b113 91908 |
|
13-Nov-2001 |
bnicholes |
Misc. cleanups and performance enhancements |
1c0b7c3bdace07946457fa7ba04b7f97b6599792 91896 |
|
13-Nov-2001 |
rbb |
Remove commas from the end of the macros that define
directives that are used by MPMs. Previous to this patch,
you would use these macros without commans, which was unlike
any other directives. Now, after the macro, you must have
a comma. This makes the macros look more like the rest of the
directives.
I know this is cosmetic, and I was going to leave it alone, but when
I found out that it bothered Cliff too, I decided to fix it after all.
Submitted by: Ryan Bloom and Cliff Woolley |
57dbb41e7cf44cdd9aa99aa4c065e769463ab6b1 91889 |
|
13-Nov-2001 |
rbb |
Remove more network logic from the MPMs. Essentially, each MPM can define
AP_MPM_DISABLE_NAGLE_ACCEPTED_SOCK, which tells Apache to disable_nagle
on the accepted socket. |
e6cc28a5eb3371ba0c38e941855e71ff0054f50e 91887 |
|
13-Nov-2001 |
rbb |
Begin to abstract out the underlying transport layer.
The first step is to remove the socket from the conn_rec,
the server now lives in a context that is passed to the
core's input and output filters. This forces us to be very
careful when adding calls that use the socket directly,
because the socket isn't available in most locations. |
53509ebdb0660b47696e64b8214b73818d339553 91832 |
|
10-Nov-2001 |
rbb |
Remove ap_lingering_close from all of the MPMs. This is now done as
a cleanup registered with the connection_pool. I have also turned
ap_lingering_close into a static function, because it is only used
in connection.c. This is the next step to consolidating all of the
socket function calls. ap_lingering_close will only be added if the
core is dealing with a standard socket. |
c4fbc4018fd2b6716673a38ee27eeb36cba41c5d 91777 |
|
07-Nov-2001 |
jwoolley |
Fix the spelling of the AP_MPMQ_MIN_SPARE_DAEMONS and
AP_MPMQ_MAX_REQUESTS_DAEMON macros. Better to do it now rather than later.
**WARNING** This will of course break the compile on any third-party MPMs
you might have floating around, but it's a really quick change to make. |
2eb905c271e33af72f0a31c9a818169e65ece8c6 91731 |
|
02-Nov-2001 |
bnicholes |
Added the secondary command line hander for manipulating a running
instance of Apache from the console. |
7858523f0ca7d8d4365f6639fdb79b5200eff7bb 91692 |
|
30-Oct-2001 |
bnicholes |
NetWare MPM cleanup |
6d805bdcf42852dba0612f41f77ecf6724b7c033 91655 |
|
24-Oct-2001 |
bnicholes |
Updated to the new locking API's |
e8ee7c044d9a3e5a281efb7eac438c999fb79b0d 91633 |
|
22-Oct-2001 |
bnicholes |
NetWare doesn't have processes so no need to detach something that
doesn't exist |
945173cae9e0f894a50aec717acea9399680fdd5 91514 |
|
17-Oct-2001 |
bnicholes |
First cut at the MPM for NetWare |