dff9f1085ec6949f0c4d4faf3b19dafe0377bf18 1657692 |
|
05-Feb-2015 |
jailletc36 |
Save a few bytes in conf pool when parsing some directives. Use temp_pool when applicable. |
609c1240f4b281e05eaec25b4b0c43e796117fd4 1605946 |
|
27-Jun-2014 |
takashi |
Revert r1601943, r1602058, r1605307 (socket callback returning pollfds)
Revert r1605369 (wstunnel refactoring)
per discassion on dev@httpd.a.o thread Message-ID:
<CALK=YjN9HfThP_k_rF9iJPcUhcQk9sNOaDPxZNG+HcJNWS4ZAQ@mail.gmail.com> |
4102a740beaa5cfca0c12683fd1f754501dc325f 1601943 |
|
11-Jun-2014 |
takashi |
Socket event callback now takes pollfd.
User (e.g. mod_proxy_wstunnel) can know
which socket is ready. |
06b8f183140c8e02e0974e938a05078b511d1603 1593860 |
|
11-May-2014 |
covener |
PR56333: Add an API to resume a connection that a handler has previously suspended.
Submitted by: Artem <artemciy gmail.com>, Edward Lu <Chaosed0 gmail.com>
Committed by: covener |
259878293a997ff49f5ddfc53d3739cbdc25444e 1593857 |
|
11-May-2014 |
covener |
Extend the socket callbacks in event to allow a timeout on the I/O callback.
When a socket callback has a timeout, an associated timer event is used to
remove the sockets from the pollset and call a timeout function.
* This includes a noteworthy change to the main event loop. Previously,
we would call epoll, then process the timer events, then iterate through the
poll results. After this patch, the timer events are processed before the poll()
a _non-queued_ action can change the pollset conents (a users timed callback
function conversely could easily sit in a queue while the main thread continues
down into epoll)
* timer events can now have sockets associated with them, those sockets are
removed from the pollset when the timer event fires w/o a queue to the worker.
* timer events now have a canceled flag that can be toggled without locking
the timer list.
* Drop the severity of some wstunnel messages from DEBUG to TRACE1
* Lift the restriction on using asynchronous websockets connections but having
an idle timeout |
ce19babfbb921ca952233eb747a2e49f21cba762 1546836 |
|
01-Dec-2013 |
trawick |
avoid duplication of APR_HOOK_LINK invocations |
1cb8c0c886124c27b0b032bf8fc53611d990200f 1546835 |
|
01-Dec-2013 |
trawick |
Follow-up to r1546759: Fix compilation when exception hooks aren't enabled. |
c8e4ae58e7b9eb27e5158d6980770d5064c50ba7 1546759 |
|
30-Nov-2013 |
trawick |
Add suspend_connection and resume_connection hooks to notify modules
when the thread/connection relationship changes. (Currently implemented
only for the Event MPM; should be implemented for all async MPMs.) |
bb2ec4bda29720d914838486ad0bbfba9ac75d5d 1542338 |
|
15-Nov-2013 |
trawick |
Fix potential rejection of valid MaxMemFree and ThreadStackSize
directives.
Submitted by: Mike Rumph <mike.rumph oracle.com>
Reviewed by: trawick |
8966f6c6e6ed032cd17d020140e0ac1329d382b6 1493741 |
|
17-Jun-2013 |
jim |
Fold in Eric Covener's socket callback |
1ec73fc12d4912ea9f4841c301458454589b32d9 1369808 |
|
06-Aug-2012 |
trawick |
The Pidfile directive and ap_log_pid()/ap_remove_pid()/ap_read_pid()
now respect DefaultRuntimeDir |
2ba1586475aa4ec972ca7c19b06d53bf76f0ee7e 1303201 |
|
21-Mar-2012 |
fuankg |
Revert r1294936 (Jeff's revert) and fix NetWare / Win32 build.
Added the missing AP_DECLARE* decorations for the function
implementations and variables. |
185aa71728867671e105178b4c66fbc22b65ae26 1209766 |
|
03-Dec-2011 |
sf |
Add lots of unique tags to error log messages |
855e94acd8248a10554943f0d5cd8ab89f3bb7d0 1201202 |
|
12-Nov-2011 |
rjung |
Folloup on r1201158: New MaxMemFree was meant
to be 2048, not 4096. |
021d92af060084e767f197b33c86e12eadaae4c2 1201158 |
|
12-Nov-2011 |
sf |
Set MaxMemFree 2048 by default |
d354c2983fc611d55dcf5d160d14c796d5143d35 1200449 |
|
10-Nov-2011 |
trawick |
end-generation hook: Fix false notification of end-of-generation for
temporary intervals with no active MPM children. |
01694dd2fb16b9ea30e9136e0fa1103acddb7014 1198868 |
|
07-Nov-2011 |
sf |
Call apr_random_after_fork() manually in the child processes because the MPMs
use plain fork() and not apr_proc_fork().
Also add some workaround for APR not changing the RNG state in the parent. |
7a33ac1af978d790a5594d686141ad284eacd070 1180687 |
|
09-Oct-2011 |
sf |
Consistently use base 10 for numbers when parsing config options. It may be
confusing to the user if some directives treat a number with leading zero as
octal while most don't. |
67746e0d18eeceb247fc940148c9b4d358929643 1180681 |
|
09-Oct-2011 |
sf |
Add -D DUMP_RUN_CFG option to dump some configuration items
from the parsed (or default) config. This is useful for init scripts that
need to setup temporary directories and permissions, for example if those
temporary directories are located on a ram disk. |
a21e322a6250a12588cb0964b9a022ce76225e67 1179448 |
|
05-Oct-2011 |
sf |
Export ap_max_mem_free, needed by r1178079, as pointed out by Gregg L. Smith |
5dbbb0221ed51f6d9ec00c9e160197f2baafbb6e 1143469 |
|
06-Jul-2011 |
jorton |
* server/mpm_common.c (ap_core_child_status): Allocate the geninfo,
unused_geninfo ring heads from the heap; fixing gcc aliasing
warnings. |
a041174c92fec6d5e37496ae7f5fe0d2ea946147 1137813 |
|
21-Jun-2011 |
sf |
Log the deprecation warning at level info, not warn |
7184de27ec1d62a83c41cdeac0953ca9fd661e8c 1132781 |
|
06-Jun-2011 |
sf |
Introduce ap_(get|set)_core_module_config() functions/macros and use them
everywhere.
We know that the core module has module_index 0. Therefore we can save
some pointer operations in ap_get_module_config(cv, &core_module) and
ap_set_module_config(cv, &core_module, val). As these are called rather often,
this may actually have some (small) measurable effect. |
f27aba3309b1ccd146f5b949f77348a834b4b057 1101671 |
|
11-May-2011 |
trawick |
disable hook probes for our two hooks which have no args
Reviewed by: jim |
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. |
490993ea2eda52d4fdacff247eb2657296c86f71 1089472 |
|
06-Apr-2011 |
trawick |
Abort if the MPM is changed across restart.
A new MPM can't be expected to manage the existing state,
particularly if that includes processes from the previous
generation. |
133a47776e6bc3f11f3beac454e643240b675ff7 1087085 |
|
30-Mar-2011 |
trawick |
Simplify the interface to ap_reclaim_child_processes() and
ap_relieve_child_processes(): instead of requiring the MPM
to implement an otherwise-useless hook, just use a callback
function.
As I don't expect third-party MPM devs are following our day
to day progress, the API changes are considered part of
yesterday's MMN change. |
0d1331a674d82827da465dbfc5da0d6da6344816 1086953 |
|
30-Mar-2011 |
trawick |
the mpm-note-child-killed hook was just for use by
ap_{reclaim,relieve}_child_processes; those functions can
invoke the hook directly; the function ap_mpm_note_child_killed()
is useless |
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) |
be73a6772983e9b7e9310e9ed66aa2d2e55af4f5 1085779 |
|
26-Mar-2011 |
trawick |
use apr_time_from_sec() shortcut |
8ed474513545460ad41ea5155854b69bfbd3f0cf 1082250 |
|
16-Mar-2011 |
fuankg |
Added prototype for initgroups(). |
be192cefa381d5bae6868034687471754cb43175 1021924 |
|
12-Oct-2010 |
sf |
Rename MaxRequestsPerChild to MaxConnectionsPerChild, which
describes more accurately what the directive does.
The old name still works but logs a warning. |
0807f6da6091b748ab47c21ba66252fe8da2a966 987806 |
|
21-Aug-2010 |
sf |
core: Abort with sensible error message if no or more than one MPM is
loaded. |
c3e233736c4a453cbb2166a041f779e86230630a 982050 |
|
04-Aug-2010 |
sf |
remove more unused variables
revove some obsolete comments
netware file is untested |
36ef8f77bffe75d1aa327882be1b5bdbe2ff567a 951895 |
|
06-Jun-2010 |
sf |
Use the new APLOG_USE_MODULE/AP_DECLARE_MODULE macros everywhere to take
advantage of per-module loglevels |
0cb6873985efbf0cc9644114925df6baa4b32d5a 903020 |
|
26-Jan-2010 |
wrowe |
Refactor mod_status out of the ExtendedStatus toggle picture, as other
modules can and should be able to use this scoreboard information.
Rename suggestions for such a directive are welcomed.
Note that mod_status toggles the default, to present the ExtendedStatus
for server operators, whenever it is loaded. Docs changes to follow. |
11f2c481e1d57bedb3f758565307501e9a2730dd 883540 |
|
24-Nov-2009 |
trawick |
Replace AcceptMutex, LockFile, RewriteLock, SSLMutex, SSLStaplingMutex,
and WatchdogMutexPath with a single Mutex directive. Add APIs to
simplify setup and user customization of APR proc and global mutexes.
(See util_mutex.h.) Build-time setting DEFAULT_LOCKFILE is no longer
respected; set DEFAULT_REL_RUNTIMEDIR instead.
Some existing modules, such as mod_ldap and mod_auth_digest gain
configurability for their mutexes. |
a5eaeb4c27e1b2b92e8d49f8f19fdaf77ce0d776 818828 |
|
25-Sep-2009 |
jim |
Hmmm... forgot git commit/dcommit. |
40965c37b2fd320093215de6c3fbd516382077ea 818825 |
|
25-Sep-2009 |
jim |
Enhance ap_hook_monitor to pass along a server_rec (in
general the ap_server_conf) and tuck away some storage
in there which may be useful as an opaque data pointer. |
4a13940dc2990df0a798718d3a3f9cf1566c2217 807930 |
|
26-Aug-2009 |
bjh |
Bring back OS/2 support.
Reverses r758929 with a little bit of conflict resolution. |
ff32c2e8bb4918d83fdad1182dcc26eeb88d28a5 762127 |
|
05-Apr-2009 |
trawick |
main() can use ap_run_mpm() directly, so axe the old ap_mpm_run() function
change the mpm hooks to return OK/DONE instead of 0/1 |
badbab787974c883f2fff0341b4b249bbf6d57a2 760864 |
|
01-Apr-2009 |
trawick |
mpm-query hook: distinguish between DECLINED and APR_ENOTIMPL so that
. ap_mpm_query() can return APR_EGENERAL if called too early (for debugging a module)
. some hypothetical module which implements the mpm-query hook can bypass the MPM
with APR_ENOTIMPL |
66b7d26b8c3164ddd1cd1ee1d0bec6cd5780301b 759757 |
|
29-Mar-2009 |
trawick |
the mpm_get_child_pid hook is unnecessary, as was the per-MPM MPM_CHILD_PID() macro which it replaced
axe this new hook, and use ap_get_scoreboard_process() instead |
fda1a61aacb6950953b7393b845b0639d8e87359 758944 |
|
27-Mar-2009 |
trawick |
axe unmaintained 1.3-era code to support AUX, SunOS, IRIX, Next, Tandem, MPE,
LynxOS, QNX, and UnixWare |
eacb724157bafd5062590305826ebc6fecb48cd2 758936 |
|
27-Mar-2009 |
trawick |
remove TPF support |
1ca054782cb35b5f67686a41b1df75c269fa617b 758929 |
|
27-Mar-2009 |
trawick |
remove OS/2 platform support |
d9d4644be2fe336af6e00cadaf28532f68d1e090 758891 |
|
26-Mar-2009 |
trawick |
remove BeOS OS support |
f8aafb8bd93472f7da5a7c158958ee09e4176c8e 758613 |
|
26-Mar-2009 |
trawick |
remove leader, perchild, and threadpool MPMs (other than non-English bits in common parts of the manual) |
5b510199eb0fc8a7f98973b07d74c85287c7cce6 758406 |
|
25-Mar-2009 |
trawick |
fix mpm_get_name hook
a string can't be used as the declined value since the hook macro must compare
retcodes from hooks with that declined value
(thanks, gcc/Joe)
accommodate in ap_show_mpm() since we don't want to return NULL to the caller of
this simple API |
a1a4e55fb7678118a8334019c18509c248b0c0b3 758367 |
|
25-Mar-2009 |
wrowe |
refactor mpm_common.c into itself and mpm_unix.c for unix-specific quirks |
aae6ae5e5557b23552f5771aa385c5b6bb203229 758312 |
|
25-Mar-2009 |
trawick |
resurrect the old (pre-r757867) compiled-in MPM_NAME value, but via a hook for dynamically
linked MPMs |
dd028aa8111afb6534fece555e8c2d408894671e 757853 |
|
24-Mar-2009 |
trawick |
Introduce a new set of APIs to allow MPMs to be proper modules instead
of integral parts which share global variables, functions, and macros
with the rest of httpd.
Converted now:
prefork, worker, event, simple, WinNT*
*WinNT hasn't been built or tested, and relies on a hack to include the
WinNT mpm.h to disable Unixy MPM support routines in mpm_common.c |
289858d0155c45a379e0c6c04f7aab1cae34f62e 726065 |
|
12-Dec-2008 |
jorton |
* server/mpm_common.c (dummy_connection): If possible, use a non-SSL
listening port to use for the dummy connection, to avoid causing
(confusing) error log spam by sending EOF down an SSL port.
PR: 39653 |
a91a59d0b0ceed7cd5621fe8757eda5ff6a043a8 722399 |
|
02-Dec-2008 |
pquerna |
API Cleanup in preperation for 2.4.x, make sure all exported functions or variables contain an ap_ prefix. |
70519fd54cbaeb17f04ef45be265093e9a84b649 709993 |
|
03-Nov-2008 |
niq |
Switch all unix MPMs to use drop_privileges hook (mod_unixd) for startup
and add a flag to prevent running without any module taking responsibility
for managing system privileges! |
9542bc9d62d941282e44003b45c50d3ae02d24aa 697425 |
|
21-Sep-2008 |
pquerna |
Add dummy ap_mpm_register_timed_callback for other MPMs besides Event. |
e1b895e49f93ec63d032ef32bde4edc7512367ce 617373 |
|
01-Feb-2008 |
martin |
Avoid core dumps by getting the signal_description only if
a process actually terminated on a signal. Update status
only on a valid wait response. |
45e78a4e88fb6e059a0d893f8c8285add2241807 613263 |
|
18-Jan-2008 |
jorton |
* server/mpm_common.c (reclaim_one_pid): Retrieve the exit status from
apr_proc_wait(); call ap_process_child_status() for children which
terminate, to ensure that abnormal exits (e.g. SIGSEGV) are logged.
PR: 42757 |
61aedfdec1f1e8ff1ce976aaead571e3c5b79b60 587673 |
|
24-Oct-2007 |
wrowe |
Unless I've misread this, POD is write-blocking, read nonblocking timeout 0. |
c95d39bd1b86b856ca72485516e7b2e61008fe96 568833 |
|
23-Aug-2007 |
wrowe |
ap_available_mutexes_string and ap_add_available_mutexes_string
cannot be data symbols when mod_ssl is built as a loadable module;
using an external string constant in a loadable module is not portable.
Also reorganize file and sem to follow their explicit mechanisms,
and ensured that the explicit mechansims are listed in order of
preference.
This raises a question, would [fcntl|file] be a clearer way of
indiciating what the file/sem methods devolve to? |
0683dbec385413764fd75f923f64effda2ae6382 551889 |
|
29-Jun-2007 |
jim |
getpgid() returns a pid_t |
5d4512d8c3a70094ff3e941667007a42925f73e2 551843 |
|
29-Jun-2007 |
jorton |
Add alternative fixes for CVE-2007-3304:
* configure.in: Check for getpgid.
* include/mpm_common.h (ap_mpm_safe_kill): New prototype.
* server/mpm_common.c (reclaim_one_pid): Ensure pid validity before
calling apr_proc_wait().
(ap_mpm_safe_kill): New function.
* server/mpm/prefork/prefork.c, server/mpm/worker/worker.c,
server/mpm/experimental/event/event.c: Use ap_mpm_safe_kill() on pids
from the scoreboard, throughout.
* include/ap_mmn.h: Minor bump. |
d9b12166875edee8979f2bd4ad3927e4ed7fdc4b 551835 |
|
29-Jun-2007 |
jorton |
Revert r547987 ("svn merge -c -547987 .") |
6b5c796d0b610b0f7a0e6da415ad85258d7897cb 551823 |
|
29-Jun-2007 |
jorton |
* server/mpm/prefork/prefork.c (reap_children),
* server/mpm_common.c (ap_wait_or_timeout): Remove dead code; NEED_WAITPID
has never been defined by the 2.x build system. |
a37803b5c687c0bfb99e49bd4b030fb40812774d 547987 |
|
16-Jun-2007 |
jim |
PID table impl: parent process keeps a local table store of
Apache child process PIDs and uses that to check validity
of what's in the scoreboard. |
f5f279e2a6995267cc1a91165c1137e828d490b1 517233 |
|
12-Mar-2007 |
jorton |
* server/mpm_common.c (dummy_connection): Use "OPTIONS *" for request
on dummy connection.
PR: 41796 |
1984fb67ee5ef2fbd359ec860dee89b9dc1094bf 500897 |
|
28-Jan-2007 |
rpluem |
* Nitpicking: Get the comment right. |
da0d09d5b49958dcef2f394477d7174dfd584534 500881 |
|
28-Jan-2007 |
trawick |
Unix MPMs: Catch SIGFPE so that exception hooks and CoreDumpDirectory
can work after that terminating signal.
Submitted by: Eric Covener <covener gmail.com>
Reviewed by: trawick |
67139e2d50d1e11558d87f7042f61cb04bb0d1d2 467326 |
|
24-Oct-2006 |
jim |
Once SSLMutex allowed for the setting of both the
locking method and the lockfile location, I never
liked how AcceptMutex was linked to LockFile. This
seemed unnecessary. Much better to have AcceptMutex
do both as well. Plus, now that we will likely see
other modules require a "standard" way of setting
mutexes, why not have Apache provide that as
an API of sorts.
Anyway, LockFile is now depreciated and AcceptMutex
is now SSLMutex-like. We also provide a short
function that "parses" out a mutex parameter
and strips out the mechanism and lockfile location.
AcceptMutex and SSLMutex is this capability. |
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(). |
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 |
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. |
1bb5a38299d7392411c6f7051ee36b75d5b5d81c 240465 |
|
28-Aug-2005 |
colm |
Add ap_relieve_child_processess(), a non-infanticidal copy of
ap_reclaim_child_processes(). Allows us to waitpid() each process in the
scoreboard and each "extra" process with a single call. |
09fe36356e0ba563c84f86f53a7cd9ba43f6ea9f 240296 |
|
26-Aug-2005 |
colm |
Move the "GracefulShutdownTimeout" directive into mpm_common, for re-use
with other MPM's. |
81bc29e61cebeb60fb967a133adc98ca99b60d7e 240269 |
|
26-Aug-2005 |
colm |
Make the neccessary changes to mpm_common and main to support a graceful-stop
command line argument. |
7b621044ee03c0c140c2ba6fdab7d2dfdb2b9f4a 239430 |
|
23-Aug-2005 |
colm |
Remove support for the threaded-mpm's on Linux 2.0, and de-autoconf the
graceful restart signal. Frees up SIGWINCH for implementing graceful stop.
See <20050727114058.GA3390@stdlib.net> and subsequent thread on httpd-dev. |
5802afe0c7ec632db25a9d5b6c270a19958121b7 230808 |
|
08-Aug-2005 |
pquerna |
Add a User-Agent to the dummy connection code to ease admin debugging.
Submitted By: Colm MacCarthaigh <colm stdlib.net> |
d48f648eb5864d8a8c1bb7a23df73331d4928cdc 202508 |
|
30-Jun-2005 |
jorton |
* server/mpm_common.c (dummy_connection): Fix length argument passed
to apr_socket_send. Remove redundant _shutdown call. |
3a97132b0a175d60cfdece5c9cfca81ba05d6cf5 202039 |
|
27-Jun-2005 |
pquerna |
Argh. Style Fix. Habits are hard to kill. |
9152b0c4366af633c4b7982af01bd9a821f410d5 202027 |
|
27-Jun-2005 |
pquerna |
*) server/mpm_common.c: Send a simple HTTP 1.0 request to every listener socket, instead of just closing the socket. This fixes shutdown of the Worker MPM on FreeBSD, when Accept Filters are enabled.
In the future, we need a method to send a simple request for all protocols. Currently this is very specific to HTTP and FreeBSD's Accept Filter. |
b3fbf878ce65b8f6e33c025b63e497561195c808 189475 |
|
08-Jun-2005 |
niq |
Fix for reported compile problem |
59c6d01d3ab461909e81b6e025b1af2c69e35255 188846 |
|
07-Jun-2005 |
niq |
Add monitor hook (discussed under "watchdog" thread). |
573e5e1f87e3c6f611b64294302f78b690882a6e 154044 |
|
16-Feb-2005 |
trawick |
restore google-ability of an ancient message of great importance |
08cb74ca432a8c24e39f17dedce527e6a47b8001 151408 |
|
04-Feb-2005 |
jerenkrantz |
Update copyright year to 2005 and standardize on current copyright owner line. |
c169c5f94d61a860f3110c5d29a9fb306e762c11 109510 |
|
02-Dec-2004 |
trawick |
worker MPM: Fix a problem which could cause httpd processes to
remain active after shutdown.
The problem occurred when a scoreboard entry currently
in use by an exiting child process was used for a new child
process. At that point, the MPM forgot about the exiting
child process, so ap_reclaim_child_processes() wouldn't be
able to forceably terminate it.
(An exiting child process may *never* exit due to a stuck
or long-running request being handled on one of the threads.) |
13bb96fa310fcef732e8ec4c577cc36fc3a22288 106918 |
|
29-Nov-2004 |
trawick |
zap extra blank in error message |
00e43554cb9e633efd88ea81d5750a467ba8c613 105264 |
|
23-Sep-2004 |
jorton |
* server/mpm_common.c (dummy_connection): Log the address if the
connect() fails. |
08b98efa42017369c679a7457c79d5220fb3431b 105195 |
|
18-Sep-2004 |
trawick |
Unix MPMs: Shut down the server more quickly when child processes are
slow to exit. |
f2b43354f9ac8496ab7003ae01211af739efba1a 104651 |
|
14-Aug-2004 |
trawick |
tweak error handling when reading the pid file
previously strtol() would look at unitialized
storage, but now the string is terminated where
the data read ends
give user a hint about removing the file if we can't
read/parse it properly
(somehow I ended up with a truncated httpd.pid on my
own system, leading to these tweaks) |
af8dee354a287249dd9f3f77bbe850108e5afe43 102975 |
|
16-Mar-2004 |
trawick |
use existing directive name ThreadStackSize instead of
WorkerStackSize
as made obvious by: Brad Nicholes |
14763a0db22322626dd8cd59dfbc3a4fcc655d99 102931 |
|
11-Mar-2004 |
trawick |
Threaded MPMs for Unix and Win32: Add WorkerStackSize directive
to override default thread stack size for threads which handle
client connections. Required for some third-party modules on
platforms with small default thread stack size.
This is also useful for trimming back the stack size on
platforms with relatively large default stack size in order to
conserve address space for supporting more threads per child. |
c743534f17454db84e6b8d3bf9e99824ab6fd58f 102869 |
|
06-Mar-2004 |
jorton |
* include/mpm_common.h (ap_pod_t): Remove 'sa' field.
* server/mpm_common.c (ap_mpm_pod_open, dummy_connection): Use
ap_listeners->bind_addr for the dummy connection rather than doing a
name lookup on the first listener's hostname and using one of the
addresses returned.
PR: 27313 |
964ab6604d7d8f2aa35a8ec41df86d0fd58f76f3 102772 |
|
25-Feb-2004 |
jorton |
* server/mpm_common.c (ap_process_child_status): Remove an escaped \n
in the error log and add some political correctness. |
65eb4ff7f436c894b9fee6a2f86f291e9778c7ce 102686 |
|
19-Feb-2004 |
trawick |
Add a new directive EnableExceptionHook that must be specified for
exception hooks to be called (in addition to the build time
requirements).
The 2.1-dev feature is now more aligned with the 1.3.30-dev feature,
in that there is a build-time requirement as well as a configuration
requirement. |
6de8046f8f7e07cd83895a528df25d977e502c76 102619 |
|
09-Feb-2004 |
nd |
fix name of The Apache Software Foundation |
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dc 102525 |
|
06-Feb-2004 |
nd |
apply Apache License, Version 2.0 |
6a022f6f23aa0d9459b90f4a8004330d8c87496d 102420 |
|
27-Jan-2004 |
trawick |
avoid losing a subpool (until restart) on a rare error path |
26a4456dd6f1a5d7d7fff766551461a578687c4a 102135 |
|
01-Jan-2004 |
nd |
update license to 2004. |
02df0a580b87dd158a5c4e0abac82f36c5f669b7 102033 |
|
11-Dec-2003 |
trawick |
fix a problem where a crash of a non-MPM child process could
result in an error log message stating that the parent had
crashed
the problem, which affected all *X platforms, was due to an
attempt to support the general problem with linuxthreads;
this change leaves us with a relatively obscure hole when
running on linuxthreads (see comments) |
5866fd6f9cba06306e84d940fc29973e50001b51 101899 |
|
26-Nov-2003 |
trawick |
Add fatal exception hook for use by debug modules. The hook is only
available if the --enable-exception-hook configure parm is used.
Sample users at http://httpd.apache.org/~trawick/exception_hook.html |
ffe2288659bf2572ce8e3464986c1ad660f3c1cd 101848 |
|
22-Nov-2003 |
trawick |
build with latest other-child API changes |
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 |
709cbb7b338843a3f9d7b9b92e8e0c4b1f9b7848 99373 |
|
16-Apr-2003 |
ake |
Enable ap_sock_disable_nagle for Windows. This along with the addition of
APR_TCP_NODELAY_INHERITED to apr.hw will cause Nagle to be disabled for
Windows. |
a29b6dffea8320685566bcd38a48ce91ef861dee 99312 |
|
09-Apr-2003 |
trawick |
consolidate code related to sig_coredump
a note on perchild:
perchild exception handling was busted before this and is still busted
the problem I noticed was that a client that exposes a segfault never
gets its connection dropped and the parent never notices that the
child process that segfaulted hasexited |
7a01bcd2d59be7ec9ce55701c58054fa1c0bb5b6 99032 |
|
20-Mar-2003 |
wrowe |
SECURITY: Eliminated leaks of several file descriptors to child
processes, such as CGI scripts.
PR: 17206
Submitted by: Christian Kratzer <ck@cksoft.de>, Bjoern A. Zeeb <bz@zabbadoz.net>
Reviewed by: Joe Orton, Will Rowe |
4ac3e76f96ca3a5d0f67ae5cbe637c18f7280458 98908 |
|
06-Mar-2003 |
gregames |
Linux 2.4+: enable coredumps when Apache is started as root if
CoreDumpDirectory is explicitly coded |
33bdcae1f7a1a65e351dda2a766a0cf28b1e695d 98573 |
|
03-Feb-2003 |
nd |
finished that boring job:
update license to 2003.
Happy New Year! ;-)) |
9179fa90e821c964d10f28b97fc6acee776af7cf 96057 |
|
15-Jul-2002 |
wrowe |
http occurances to update for apr_socket_opt_get/set |
c02a4caf7d7ea2ba7c5b230427b0a9776040c86b 96055 |
|
15-Jul-2002 |
wrowe |
Timeout/time fixes |
e8ec343f24b74144e7ade7e666135b9f3cda9425 95955 |
|
04-Jul-2002 |
striker |
Now why did I commit that symbolic constant in APR again? Exactly...
to use it here. |
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. |
fe6842fdf9edddd02ac5f6a0105c74d9cd3a8506 95587 |
|
09-Jun-2002 |
wrowe |
Well the wrappers work out well... nice to be able to put off committing
these API changes until the evening ;) |
5a63340978acb9dd7e87724be57d2bde1cf1f629 95269 |
|
24-May-2002 |
trawick |
the "-k startssl" parameter is reverted by popular demand |
8c6c3910cd71870ba6ec8e94d56b44eee921b6e2 95251 |
|
23-May-2002 |
trawick |
fix data initialization problem in new Unix -k option processing |
9f7325ecad575cf77ab76b01beaaf339a63490b5 95237 |
|
23-May-2002 |
trawick |
Add "-k start|startssl|restart|graceful|stop" support to httpd
for the Unix MPMs. These have semantics very similar to the
old apachectl commands of the same name.
The use of stderr/stdout and exit status for error conditions
needs to be revisited. For now it matches apachectl behavior.
Justin Erenkrantz got the ball rolling with this feature. Some
of his support code was used unchanged. Other code was shuffled
around and modified or rewritten. |
2d399cd7535887fceaa9f8f116eb98ce68ddd602 95149 |
|
17-May-2002 |
trawick |
stop using APLOG_NOERRNO in calls to ap_log_?error() |
faf8593cc6d1c8e598ca434f7e88effa74f19e2f 94566 |
|
09-Apr-2002 |
aaron |
Remove unnecessary includes of apr_lock.h |
a1be7357e2c08b9dfe52c277063d212d65b15fee 94434 |
|
04-Apr-2002 |
jim |
Added support for Posix semaphore-based mutex locking (AcceptMutex posixsem).
It's between pthread and sysvsem in the DEFAULT priority ranking. This
makes it the new default for Darwin, and adds support for it for other
platforms as well (like Solaris).
PR:
Obtained from:
Submitted by:
Reviewed by: |
c6a8fc64a8bb468e47559177bd6577b3ee68b486 94308 |
|
29-Mar-2002 |
rederpj |
PR:
Obtained from:
Submitted by: Paul J. Reder
Reviewed by:
Remove the MPM_SYNC_CHILD_TABLE macro since there is no longer a scoreboard
file that needs to be synched. |
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: |
d9fcdb415d8661cbd9451df8f88e003a1aa04ce9 93999 |
|
18-Mar-2002 |
trawick |
Fix a hang condition with graceful restart and prefork MPM
in the situation where MaxClients is very high but
much fewer servers are actually started at the time of the
restart.
The way we notify an entire generation to die at once is
changed so that we don't have to use the pod (and deal with
the ease of filling the kernel pipe buffer). |
164d2c112e0d631a9fb8df23ef7193830351eff3 93997 |
|
18-Mar-2002 |
trawick |
don't check for EINTR after a call to apr_file_write();
you'll never see it |
cb97ae2ff6969c2789b8e03f1bc4187fa73b6baf 93969 |
|
16-Mar-2002 |
wrowe |
Simplify s/APR_OS_PROC_T_FMT/APR_PID_T_FMT/, apr_os_foo entities aren't
for external consumption. |
32c4bc04f89b16521718145dc731f750144d7b38 93965 |
|
16-Mar-2002 |
wrowe |
Eliminate potential ap_server_root_relative segfaults, with the input
of Jeff Trawick's style changes to the first patches. Doesn't include
the fixes to ssl [more complex], and we won't trap errors that involve
ap_serverroot, since we presume that was normalized on the way in.
Therefore, testing ap_server_root_relative(DEFAULT_FOO) cases
should never become necessary. |
bc8fd1b0b1afdf89b8d28eefa8cd74e26ba97986 93918 |
|
13-Mar-2002 |
fielding |
Update our copyright for this year. |
6064730a083689e37221878698d89ec0bdb8df38 93843 |
|
11-Mar-2002 |
striker |
Make this look a bit better. |
0cc4ff3e61b5b51af4206a43d511808d88b1f55e 93833 |
|
11-Mar-2002 |
striker |
Style Police comming through... |
de8029dc18b6bf225d9f0e357d93268ab5819f47 93560 |
|
24-Feb-2002 |
trawick |
don't wait nearly so long for child processes to go away
the adjustment of the wait time was done too soon
now the code should be consistent with 1.3 behavior |
4a466b427dc425c8b7b1f453390840babb9a2684 93479 |
|
18-Feb-2002 |
trawick |
close an extremely unlikely file descriptor leak in
dummy_connection() |
6d74c65f131583f6832b04424c1a9e1e7cc72c8e 93366 |
|
12-Feb-2002 |
gregames |
if a child detects a resource shortage on accept(), limit the rate of fork()s
to 1 per second until the situation clears up.
Inspired by: Martin Kraemer |
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. |
612b906e8dd17ebb1704b6663caf5d9ab321f971 92653 |
|
30-Dec-2001 |
trawick |
handle the disappearance of apr_lock_create_np() and
apr_proc_mutex_create_np() and the new parameter to
apr_lock_create() and apr_proc_mutex_create() |
ca47a2b6bcea23e8af185c68f256dcbbfd2a0f9d 92512 |
|
18-Dec-2001 |
trawick |
Change core code to allow an MPM to set hard thread/server
limits at startup. |
b760518cc17e7124ba546ed63063603f1ab82a40 92437 |
|
13-Dec-2001 |
aaron |
Fix a bug in how we select the IP for the POD to connect to for dummy
connects (dislodging a doomed child from the accept mutex). No longer
do we assume that the child is listening to 127.0.0.1, but instead
we just pick the first hostname/port from the listen rec. |
fbfb3f3c63cc89bffc14d45413d63263de367833 92411 |
|
10-Dec-2001 |
gregames |
fix a problem with graceful restart. If you look at daedalus early in the
morning, you will usually see lots ( >50 ) of old generation processes
happily serving requests with yesterday's config. Late in the afternoon, they
are usually gone due to MaxRequestsPerChild and perform_idle_server_maintenance.
ap_mpm_pod_signal can time out during connect(), causing it to exit with an
error. If it was called by ap_mpm_pod_killpg during graceful restart,
ap_mpm_pod_killpg will exit immediately. This can cause us to not write
enough characters to the pod to kill off all the old generation children.
This fix decouples the loop which writes to the pod from the loop which
generates dummy connect()s. The connect()s aren't as important as
writing to the pod when there is a steady stream of inbound connections.
also, close the socket and destroy the temporary pool if the connect()
fails. |
3f503ff37480e995f655b3388e188c0a2754a559 92305 |
|
04-Dec-2001 |
trawick |
get prototype for strcasecmp() on AIX |
99000048652d695c3f7cdcea75d012c4a96be404 92020 |
|
17-Nov-2001 |
trawick |
make sure ap_process_child_status() always returns something |
5ad238c42b1e159ee8f164515e0c4ee6c727c2fd 92019 |
|
17-Nov-2001 |
trawick |
Get mod_cgid killed when a MPM exits due to a fatal error.
Presumably other such processes are affected to. Now we
give main() a chance to clean up. |
022cff78006f698453640e0a0e97cc5f8c9de59d 91648 |
|
23-Oct-2001 |
rbb |
Fix the reporting for child processes that die. This removes
all of the non-portable W* macros from Apache.
Submitted by: Jeff Trawick and Ryan Bloom |
889d9c84f8b1ad850f977a6d8e548696994f8f86 91101 |
|
21-Sep-2001 |
jerenkrantz |
Switch proc_pthread to pthread for the AcceptMutex directive. |
307ed39af00b7dcf85f078978d88dd7509590ec9 91093 |
|
20-Sep-2001 |
gstein |
Add an extra parameter to all apr_proc_wait() calls for the new "exitcode"
parameter. Pass NULL because we aren't interested in the value. |
0aa8e8fd5a242948518655f2296b3c76386754e5 91076 |
|
19-Sep-2001 |
jerenkrantz |
Switch back to SIGUSR1 for graceful restarts on all platforms that
support it. This defines a symbol called AP_SIG_GRACEFUL in
ap_config_auto.h which will have the appropriate signal value. All
direct references to SIGWINCH have been replaced with AP_SIG_GRACEFUL.
On Linux 2.0, use SIGWINCH instead since SIGUSR1 is used by glibc
2.0's user-space threading library to control threads. All later
versions of Linux/glibc don't have this problem. (Not to mention the
security holes in older Linux versions which make it unsuitable for
use as a web server.) If your platform doesn't have SIGUSR1, use the
appropriate mojo in configure to define what your graceful restart
signal should be.
In theory, a configure switch could be added to allow the admin to
specify the appropriate signal that should be used. This is left
as an exercise to the reader for now.
The docs need to be updated. Since the signal is now configurable,
just saying SIGUSR1 for graceful restart isn't completely true. Also,
the apachectl functionality needs to be moved into httpd - this is
what Win32 does and it makes us consistent across platforms.
Roy issued a veto against use of SIGWINCH by default, so this should
resolve that veto. |
a13121a896bc444273a2db8b624a1f468f44b1ca 91029 |
|
15-Sep-2001 |
bnicholes |
Added NetWare to the #ifdef list |
7ba58e7e63da9a8b84f6160c476a0c9d639c81e9 90213 |
|
16-Aug-2001 |
trawick |
The Unix MPMs other than perchild now allow child server
processes to use the accept mutex when starting as root and
using SysV sems for the accept mutex. Previously, this
combination would lead to fatal errors in the child server
processes. perchild can't use SysV sems because of security
issues.
translation: steal apache 1.3 code to call semop(IPC_SET) on
the semaphore to set permissions and uid/gid |
00b8146bf5d1f543ce19917c6b4fe252d33baf79 90153 |
|
14-Aug-2001 |
trawick |
namespace-protect accept_lock_mech
fix a bug in the worker MPM which effectively disabled the AcceptMutex
directive |
be8081f031f7a87942f7dcba9920cdfcf098f2c8 90141 |
|
13-Aug-2001 |
trawick |
change the name of AP_MPM_NEEDS_RECLAIM_CHILD_PROCESSES to
be more consistent with similar names added recently; this
also cleans up an #if/#ifdef discrepency |
73170da9b1add3e07decbf4beb675d872c2509af 90138 |
|
13-Aug-2001 |
trawick |
(hopefully) get WinNT MPM to build using mpm_common.c code; a few notes:
. the selection of ap_sock_disable() is certainly ugly, but that may
need to be cleaned up in a different manner...
. the directive functions couldn't be AP_DECLARE() if they are to be
compatible with AP_INIT_TAKExxx(); this is an old restriction |
46102c57fc6ebc39c70057e071d59dd70d7a86e2 90137 |
|
13-Aug-2001 |
trawick |
allow non-Unix MPMs to use mpm_common.c by not automatically
building in Unix-specific code |
7b4c4bb891261e613de39a021d7554fd08132fc5 90132 |
|
13-Aug-2001 |
rbb |
Begin to sanitize the MPM configuration directives. Now, all
MPMs use the same functions for all common MPM directives. This
should make it easier to catch all bugs in these directives once.
Everybody should check their favorite MPM to ensure that it still
compiles, and that these directives work. This is a big patch, and
although it looks good, and things compiled for me, that is no
garauntee that it will work on all platforms. :-)
Submitted by: Cody Sherr <csherr@covalent.net> |
f123a9a8362e4e49aa60c6bac0f2f1127e62474f 89612 |
|
18-Jul-2001 |
gregames |
fix memory leak of apr_sockaddr_t and apr_socket_t in ap_mpm_pod_signal,
called by perform_idle_server_maintenance.
allocate & init one apr_sockaddr_t for the dummy connect at pod open time.
use a temporary subpool for the apr_socket_t |
ed4f9ec869d7fc5bd220c8d70ee58eed9b32d60a 89604 |
|
18-Jul-2001 |
rederpj |
Changed AP_MPMQ_MAX_DAEMONS to refer to MaxClients and
added an AP_MPMQ_MAX_DAEMON_USED to refer to the highest
daemon index actually used in the scoreboard. I also
updated the pertinent calls.
Paul J. Reder |
c49c786dc58938f915f20356d954ecec1de2d205 89592 |
|
18-Jul-2001 |
wrowe |
Changes to back out inherit flag from apr_os_sock_make()
and apr_socket_create() |
3c4f451140dd2ba70ee77274ed8155f451184917 89557 |
|
16-Jul-2001 |
rbb |
Added an inherit flag to apr_socket_create and other socket creation
functions. This allows APR programs to specify that a socket should
be passed to any child processes that are created. The inherit flag
is only meaningful if programs use apr_process_create(). This
also adds a couple of macros that allow APR types to set and unset
the inherit flag.
This also fixes Apache to use the new API. |
8f43c3299e44dc11a4cd68acc93b578a0318daaf 89539 |
|
11-Jul-2001 |
trawick |
Fix an issue with the pod and prefork:
when the parent process wakes up a server process via connect(), use
an APR timeout on the connect() so that we don't hang for a long time
if there aren't server processes around to do accept() |
afd8efaddc869ed874833d855cfb2bf2ce7b95d2 89335 |
|
11-Jun-2001 |
trawick |
back out a change from last week that reversed the meaning of pod_in and
pod_out; after that change, all read and write syscalls on the handles
failed because pod_in was only readable and pod_out was only writable
we could instead reverse the order of the parameters to apr_pipe_create
so that the descriptors returned by pipe() get put in the right place,
but it seems better to stick with APR terminology for what is the input
handle and what is the output handle |
8ff84ed7af4420c7cfbafdbd2863cb3272bae256 89314 |
|
09-Jun-2001 |
trawick |
pod_in shouldn't be non-blocking after all
Submitted by: Ryan Bloom |
ddbe1d37c92cb86b363f28c25a045e821b6c49d5 89310 |
|
08-Jun-2001 |
trawick |
the input handle to the pod (used by child processes) needs to be non-blocking
before this, no requests could be processed by prefork since after connect
from the client prefork would block reading the pod
the write handle to the pod probably doesn't have to be non-blocking, but
getting EAGAIN for the pipe-full condition, rather than blocking, is nice
for now since it would tend to indicate that something is FUBAR; on the other
hand, this probably needs to change in order to support more than 4K workers |
f1b1f74e9772031753c10ab23e8074b12437f690 89303 |
|
08-Jun-2001 |
rbb |
It helps to write to the input side of the pipe, and read from the output
side. |
752560d7666dcff794ab71d7acc1b304753d2e8a 89296 |
|
07-Jun-2001 |
trawick |
trace failures of a couple of crucial socket calls in ap_mpm_pod_signal() |
688451bcf453ee8146005dddec3bf0feb23ed2b1 89294 |
|
07-Jun-2001 |
trawick |
improve ap_mpm_pod_signal() by not let it loop until it fills the pipe
it still doesn't handle the pipe being full for other reasons (bazillions
of child processes?), but I'm not sure that is a real occurrence |
55d986c77300fd39420b41f765b08c15b4c6418d 89282 |
|
07-Jun-2001 |
rbb |
First pass at the pipe_of_death logic for the prefork MPM. This does
pass some initial testing, but it needs to be banged on more. It looks
like if the server gets a lot of requests to restart all at once, there
are potential problems, but other than that this does seem to solve our
current restart issues. |
1f77fff5322081b0d3277fc841ae924f8690f6a2 89131 |
|
16-May-2001 |
stoddard |
Remove calls to apr_proc_probe_writable_fds(). The function is going away. |
80fcc08837f8545abbed508160e2cb3bf8cd1d42 88986 |
|
04-May-2001 |
trawick |
Build (and do so cleanly) when !APR_HAS_OTHER_CHILD. |
ce03576b2434cec77f2921db9d5b6a0510581c23 88741 |
|
06-Apr-2001 |
rederpj |
Changes required to make prefork clean up idle children properly. There was a window during which a starting worker deadlocks when an idle cleanup arrives before it completes init. Apache then keeps trying to cleanup the same deadlocked worker forever (until higher pids come along, but it still will never reduce below the deadlocked pid). Thus the number of children would not reduce to the correct idle level. |
fea3625adece15d099bfec089f056426df1a98fb 88537 |
|
19-Mar-2001 |
bjh |
Declaration of ap_reclaim_child_processes() in exports.c needs to be
conditional in the same way that the function's definition is so give it a
suitable macro that will be recogized by the scripts that make exports.c. |
9a0d076511763b559a755133f6a182e6c24ef643 88437 |
|
02-Mar-2001 |
rbb |
Allow modules to query the MPM about it's execution profile. This
query API can and should be extended in the future, but for now,
max_daemons, and threading or forking is a very good start.
Non-Unix MPM's do have the MPM query function, although there is no
garauntee that the information is perfect, please check.
Submitted by: Jon Travis <jtravis@covalent.net> |
b99dbaab171d91e1b664397cc40e039d0c087c65 88184 |
|
16-Feb-2001 |
fielding |
Update copyright to 2001 |
7c7372abe2484e7fcf81937b93496d1246e5b816 88103 |
|
12-Feb-2001 |
gstein |
*) remove some obsolete/unused defines from httpd.h.
*) remove DEFAULT_XFERLOG from main.c; it is never set/used
*) move ap_get_max_daemons() to ap_mpm.h
*) move DEFAULT_LISTENBACKLOG to mpm_common.h |
587c6c9b6f22f1de04168d9d3e11332d2ab39e39 88079 |
|
11-Feb-2001 |
gstein |
toss the signal description stuff from unixd.[ch], beosd.h, and spmt_os2.
use the new functionality in APR. |
066877f1a045103acfdd376d48cdd473c33f409b 88019 |
|
08-Feb-2001 |
dougm |
renaming various functions for consistency sake
see: http://apr.apache.org/~dougm/apr_rename.pl
PR:
Obtained from:
Submitted by:
Reviewed by: |
a1bbc66131c63e718e3f73fc11a348f7552d7947 87881 |
|
28-Jan-2001 |
rbb |
Make the Prefork MPM use SIGWINCH instead of SIGUSR1 for graceful restarts. |
43a0d05ab2fc6d51dcd4f9b12709cef20873fce0 87777 |
|
21-Jan-2001 |
bjh |
Add headers needed for getpwnam & getgrnam prototypes & types. |
a1e0709c89175c34a3f72eb4a83d7ee1621a0884 87755 |
|
20-Jan-2001 |
rbb |
Move initgroupgs, ap_uname2id and ap_gname2id from util.c to
mpm_common.c. These functions are only valid on some platforms,
so they should not be in the main-line code.
These functions are also not portable to non-unix platforms, so they don't
really belong in APR. Since they are only used in MPMs, for right now,
I am moving them to mpm_common.c |
cccd31fa4a72fe23cc3249c06db181b274a55a69 87080 |
|
26-Nov-2000 |
gstein |
*) Compensate for recent changes in the APR headers. Specifically, some
files need to specifically include stdio.h, or a particular apr_*.h
header.
*) Adjust callers of apr_create_process() to deal with the extra "const"
*) Add "const" to args of ap_os_create_privileged_process() |
4cfd7921c87712adaf1c77d62898c478c4c79828 86405 |
|
05-Oct-2000 |
wrowe |
The lots of little ones... APR_IS_STATUS_condition(rv) conditional macros
replacing the majority of fallible rv == APR_condition tests. But there
are lots more to fix, these are the obvious ones that already did proper
canonical error conversion. |
524ad1e9f859b1cc54590bdf0045855993b6a524 86133 |
|
22-Aug-2000 |
bjh |
APRize disabling nagle (setting TCP_NODELAY).
Note that several areas have not been tested as they apply to MPMs or APR
code that I can't test.
PR:
Obtained from:
Submitted by:
Reviewed by: |
10a4cdd68ef1ca0e54af296fe1d08ac00150c90b 86008 |
|
06-Aug-2000 |
wrowe |
Remaining cleanup of ap_ -> apr_ and AP_ -> APR_ transformation...
see src/lib/apr/apr_compat.h for most details.
Also a few minor nits to get Win32 to build.
PR:
Obtained from:
Submitted by:
Reviewed by: |
1ccd992d37d62c8cb2056126f2234f64ec189bfd 85976 |
|
02-Aug-2000 |
dougm |
prefix libapr functions and types with apr_ |
1c1464571382aba34f09373f4e9efc568a2af9c9 85951 |
|
30-Jul-2000 |
manoj |
Eliminate references to specific MPMs from mpm_common.c by having the
MPMs export interfaces to the tables used to keep track of children. |
36cecf8d723f10ec217ebf7d0bbb8dab89f37f76 85950 |
|
30-Jul-2000 |
manoj |
Change semantics of ap_child_table somewhat. Instead of checking for a
dead process with status == SERVER_DEAD, check with pid == 0. This
makes somewhat more sense conceptually, and also matches the behavior
of MPMs that use a shmem scoreboard to track children. |
70d1108c574fc8b4ec9dbc2e8a75dfed607c5cfb 85902 |
|
27-Jul-2000 |
rbb |
Add a new MPM. Currently this is almost an exact copy of the dexter MPM.
In time, this will be the MPM that allows each child process to have a
unique user id. I need a place to work and keep track of my changes.
Don't expect this to work until next week sometime. |
fa752d3a6a4c52ab9ac8c606666885b12246c919 85901 |
|
27-Jul-2000 |
rbb |
Cleanup the MPM #defines. Each MPM #defines a unique name that identifies
it to the system. That name should be of the format NAME_MPM where name
is something like DEXTER, MPMT_PTHREAD, SPMT_OS2, etc. |
48ad184bd4e1dcb23fd13b582135a76530ff08c6 85899 |
|
26-Jul-2000 |
trawick |
Fix some build issues for dexter:
. dexter/scoreboard.c needed apr_strings.h to get the right
function prototypes
. main/mpm_common.c needed to recognize that we were building
for dexter; otherwise, no ap_reclaim_child_processes() was
compiled and linking failed
(It would be nice to standardize on which preprocessor symbols
are checked for... mpmname_MPM seems nice enough. Didn't the
check for symbol mpmname (no "_MPM") come with mpmt.c?) |
3fab8cfc6ce3a0f8f178cc4af9b9627cfee601e3 85894 |
|
26-Jul-2000 |
trawick |
Get ap_socket_disable_nagle() working again.
Submitted by: Greg Ames
Reviewed by: Jeff Trawick |
a1de70bda57b72d8cc6b47ea744e0973ed424f56 85878 |
|
25-Jul-2000 |
wrowe |
Add APR_EOL_STR for a platform specific text delimiter, provided by
apr.h (defined in apr.h.in and apr.hw). This is needed -only- in APR
created files (true raw files) such as logs. It is not required in any
splat to screen (stderr/stdout) formatting, nor any html markup.
Some other modules slipped through in the prior apr_strings.h commit.
Sorry 'bout that.
PR:
Obtained from:
Submitted by:
Reviewed by: |
be0e6ea9b4676d85da9cde63fa9ae443d1560f54 85821 |
|
12-Jul-2000 |
stoddard |
#ifdef APR_HAS_OTHER_CHILD to #if APR_HAS_OTHER_CHILD. Not tested. |
9d902143a03d78eb51fa44ebde191bab1d7b63a1 85819 |
|
11-Jul-2000 |
rbb |
Remove all pthreads calls from the mpmt MPM prefork emulation. This makes
the mpmt MPM look almost exactly like the original prefork MPM. Basically,
all that's left is re-naming the defined directives so they work with 1.3
config files. That will come later. |
57171f99f3ffb37c298355815d6d9b7cef76a985 85811 |
|
11-Jul-2000 |
rbb |
Move sock_disable_nagle to mpm_common.c. Rename it to ap_sock_disable_nagle.
Again, I tried to modify all MPMs that are currently using this code. |
9b07fdbae72923016406bb66e2875e3324722a6f 85808 |
|
10-Jul-2000 |
rbb |
Move process_child_status to mpm_common.c. This requires re-naming it
to ap_process_child_status and opening up ap_coredump_dir. I have
modified all of the MPMs that I saw using this function to work with this
patch. Sorry if I broke anybody. |
ff44c2b18049221731eecf541748b7dc56f541d4 85799 |
|
10-Jul-2000 |
rbb |
Fix mpm_common for use with the real prefork MPM. This was broken when
mpmt was added. This change can be removed when the MPM stuff calms down
a bit and either mpmt or three separate MPMs are chosen. |
adee3340b63ce4e049c88f30f38bb6955dbf7799 85788 |
|
07-Jul-2000 |
rbb |
Initial version of the mpmt MPM. This MPM can emulate dexter, mpmt_pthread,
and prefork. This basically just combines a lot of common code. This
builds and serves pages in all three modes, but I don't think killing
the server works in any of them. The configuration system hasn't changed
at all, so using --with-mpm=(prefork|dexter|mpmt_pthread) all work.
My goal is to remove the three separate MPMs in a few days, and then work
on merging one of the BeOS and the OS/2 MPMs into this as well. :-) |
0a7f5daf7c90be4a91f6048ab26c426b89a3de8b 85658 |
|
22-Jun-2000 |
dreid |
Add the EXTRA_LIBS to get apache building on BONE again and now that
we're using ap_sleep remove the need for sys/socket.h in mpm_common.c |
13985f24438372a515d070694a54c23a793ef46a 85657 |
|
22-Jun-2000 |
rbb |
Remove a few unnecessary calls to select. These calls used to be made so
that we would sleep for a specified number of microseconds. APR provides
a function ap_sleep that does this for us. |
c92b71666ef01c9fa725227783382fcd732ea70a 85655 |
|
22-Jun-2000 |
dreid |
Cut free mpm_common.c from ap_max_daemons_limit as a variable. Now we
get the value from the MPM and thus free the MPM to use any variable
name they like. |
35f5b5cba509090deb9d0ff9538fafc416cdb83f 85653 |
|
22-Jun-2000 |
dreid |
Small change in an effort to get restarts working correctly on BeOS. |
17770214db1ba6b19649070f34e4da982d8f6e7b 85621 |
|
19-Jun-2000 |
dreid |
Update mpm_common to work with the latest BeOS version and start
adding support for a new BeOS MPM that I'll commit in a few days. |
256dab2cf69146bb0e90f0c20470d8ebdb944c10 85569 |
|
14-Jun-2000 |
dreid |
Add sys/time.h to mpm_common to include define of timeval. |
dd155cc98289eb625eca9f37c43df16b084fa314 85488 |
|
10-Jun-2000 |
rbb |
Remove waitpid from the config checks and all calls to waitpid from the
server. |
a960c6cd6e507cd76604305bc067da4d8cb4d4d9 85372 |
|
01-Jun-2000 |
dreid |
Add support for the BeOS mpm. Also change some things to make it easier
for future additions. |
c6497248bd178e5d21b2d63aa55f235a6f3b1f29 85333 |
|
28-May-2000 |
bjh |
Only compile ap_reclaim_child_processes() if a CHILD_INFO_TABLE is known. |
b45d23f6447d0ef66da0c335a2e450f013819b5a 85286 |
|
24-May-2000 |
rbb |
Fix a memory leak with ap_wait_or_timeout. |
3ef0df2d71c36857e8ed539f0bb1d7dd3a0888c6 85284 |
|
24-May-2000 |
gstein |
use the correct size for 'ret' |
15270d690e595ddf2eee42b7bb064876f0eb5511 85283 |
|
24-May-2000 |
rbb |
Fix a small bug/warning when compiling with use-maintiner-mode related
to the ap_proc_t change. |
984d71a5392cf20a428ca89bd0464611bb3db6a9 85279 |
|
23-May-2000 |
rbb |
Convert ap_proc_t to a complete type. This lets us access the pid directly.
Only the prefork MPM has been ported so far, the rest of the Unix MPM's are
coming later today. |
4ee4bcc6af935b2d1c53098561a14521e041d14b 85257 |
|
19-May-2000 |
fielding |
Temporary fix for misuse of int instead of pid_t.
Also include mpm_common.h to pick up the common prototypes. |
636940de0f14c2fb6e907fbdf0e110e56186d9f2 85252 |
|
19-May-2000 |
trawick |
ap_wait_or_timeout() can't be static since it is called from
dexter.c, prefork.c, and mpmt_pthread.c.
(Yes, we still need a function prototype somewhere, but at least we
can link properly now.) |
b25cd715f3ef9238d495d4103cfe9e850972480c 85250 |
|
19-May-2000 |
rbb |
Move wait_or_timeout from the MPM's into the new mpm_common.c file. I
also renamed wait_or_timeout to ap_wait_or_timeout for namespace
protection. |
c42ccf48451f7920b2fb390322c3ef4d89df4a17 85249 |
|
19-May-2000 |
rbb |
First function removed from Unix MPM's and moved to a common file. This
work is not anywhere near finished, but the cleanup has begun at least.
Had to make a couple of variables non-static, so a name change was required
since they are now viewable from outside the library. The advantage to this
is code that is much easier to maintain into the future, because it is
duplicated less often. |