e52c484e6d9f17eab0adf5914e3131113338e17b 1668553 |
|
23-Mar-2015 |
ylavic |
core: follow up to r1668532: always initialize optional_fn pointers in ap_create_scoreboard(). |
f5e9e6a40304a3ce782e389a787d8bc39b09dc78 1668532 |
|
23-Mar-2015 |
ylavic |
core: Initialize scoreboard's used optional functions on graceful restarts to
avoid a crash when relocation occurs. PR 57177. |
ad24a450e10d0eede8a0a276943eedfab61fa666 1638073 |
|
11-Nov-2014 |
jkaluza |
* server/scoreboard.c: Check for child_num < 0 also in ap_update_child_status
and ap_update_child_status_from_conn. PR 56767. |
f257be9b3f2c463665f01fa45da38b8d9652bf83 1624349 |
|
11-Sep-2014 |
jim |
mod_status should honor remote_ip as documented |
95e04bdfdb8fbb70158afd18bbf0acc340615d65 1610491 |
|
14-Jul-2014 |
jorton |
SECURITY (CVE-2014-0226): Fix a race condition in scoreboard handling,
which could lead to a heap buffer overflow. Thanks to Marek Kroemeke
working with HP's Zero Day Initiative for reporting this.
* include/scoreboard.h: Add ap_copy_scoreboard_worker.
* server/scoreboard.c (ap_copy_scoreboard_worker): New function.
* modules/generators/mod_status.c (status_handler): Use it.
* modules/lua/lua_request.c (lua_ap_scoreboard_worker): Likewise.
Reviewed by: trawick, jorton, covener, jim
Submitted by: jorton, covener |
0831bc5e37671a94cb8250f8a7162362144e83bd 1503990 |
|
17-Jul-2013 |
jailletc36 |
Have static analyser tool happy.
Point 2 of PR 54936 |
041905e2fe9ea61c40a4471f2217a3de396c08c5 1417440 |
|
05-Dec-2012 |
jim |
save a apr_time_now() call for every request. |
8232302b6fc415a7ef743b65754f7d4240a5a95a 1369477 |
|
04-Aug-2012 |
trawick |
core: Respect DefaultRuntimeDir/DEFAULT_REL_RUNTIMEDIR for the
scoreboard (ScoreBoardFile). |
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. |
c7502880be24058c7fc03771fda61f95bc238339 1294358 |
|
27-Feb-2012 |
sf |
Add the port number to the vhost's name in the scoreboard |
2442138a532cd02b4cea4794a5bddbd6992159d6 1230065 |
|
11-Jan-2012 |
jorton |
SECURITY (CVE-2012-0031): Fix possible crash on shutdown if a child
changes the sb_type field in the scoreboard. Since unprivileged
children should not be able to affect the parent in this way, this is
treated as a Low severity security issue.
Thanks to "halfdog" <me halfdog.net> for reporting this issue.
* include/scoreboard.h (global_score): Remove sb_type field.
* include/ap_mmn.h: Bump MMN for above.
* server/scoreboard.c (ap_cleanup_scoreboard, ap_create_scoreboard):
Use a static global to store store the scoreboard type. |
185aa71728867671e105178b4c66fbc22b65ae26 1209766 |
|
03-Dec-2011 |
sf |
Add lots of unique tags to error log messages |
11e076839c8d5a82d55e710194d0daac51390dbd 1174929 |
|
23-Sep-2011 |
sf |
More cleanup: Expand tabs and some more indentation fixes
No functional change |
3a59bb90be3bc6246632384c3d885b875ae507d5 1172686 |
|
19-Sep-2011 |
sf |
Add wrappers for malloc, calloc, realloc that check for out of memory
situations. Use them in most places where malloc, and friends are used.
This results in clean error messages in an out of memory situation instead of
segfaulting or silently malfunctioning. In some places, it just allows to
remove some logging code.
PR 51568, PR 51569, PR 51571. |
c0976866735b2f73652e977329fe6fe8cff96a6d 1137024 |
|
17-Jun-2011 |
trawick |
s/seperate/separate/ |
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. |
237b1c198de800d82b737a77ca5e48fe1ff7bc94 1074871 |
|
26-Feb-2011 |
trawick |
fix some logging calls to include the server_rec
(and even the conn_rec in a couple of places) |
14c8c18e6caab1bdeb0f26b2b031e000fef58ef9 1058626 |
|
13-Jan-2011 |
jim |
whitespace |
2f1146e06a1bfa371573a3f3fb0379448e18aaed 1058622 |
|
13-Jan-2011 |
jim |
OK... a good commit point (we don't quite compile yet though...)
Pull out the worker scoreboard cruft and start moving most
worker stuff to shm. Use slotmem for workers and provide
space for growth.
Redo logic:
ap_proxy_define_*
ap_proxy_create_*
ap_proxy_initialize_*
Right now just for workers, but lay framework for balancers
as well. The idea is to break out the functional parts
to make it easy for dynamics. Defining is simply describing
the worker, and tucking that info away. When we create, we
go ahead and create the shared memory, etc... Initialize
is simply to allow child process to access the shm... |
57396bb85d806a8076a7421be8b95986933ae206 991507 |
|
01-Sep-2010 |
trawick |
running_gen was only set to an interesting value on a path
where it wasn't used before returning from the function; axe it |
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. |
a8d297adf1c7f8b5f487506ecfce9347ffe8d314 886324 |
|
02-Dec-2009 |
rpluem |
* server/scoreboard.c::ap_create_scoreboard
Reset the pointer to ap_logio_get_last_bytes each time we create or reinit an
existing scoreboard to avoid using an invalid pointer in case mod_logio got
reloaded to a different address.
Reviewed by: rjung, trawick |
fa3becc61223d8d89eb20cba0d38b707a5578d27 826530 |
|
18-Oct-2009 |
sf |
Use the new ap_update_child_status_from_conn() to put the client IP into the
scoreboard (and show it in mod_status) as soon as we start reading the request.
Empty the vhost and request fields in ap_update_child_status_from_conn so that
mod_status does not display outdated data if the connection closes without
the request being completely read. |
7317a32e0c621c9a28f6f10e83e6c5dc63e3f3bd 823337 |
|
08-Oct-2009 |
sf |
mod_logio: introduce new optional function ap_logio_get_last_bytes to get
total byte count of last request.
core: Use ap_logio_get_last_bytes to report more accurate byte counts in
mod_status if mod_logio is loaded. Without mod_logio, don't increment
counts for HEAD requests.
PR: 25656 |
299ab6917ab56d6e8ec61b2e5513b968ae18c998 821418 |
|
03-Oct-2009 |
trawick |
refactor child status update functions to accommodate the addition of
ap_update_child_status_from_conn()
Reviewed by: rpluem |
e0ea71c9bab221ba934db64b522ef95e422739c6 821307 |
|
03-Oct-2009 |
jim |
Provide new ap_update_child_status_from_conn() mostly
for use with mod_noloris.c Add some logic protection, for
NULL ref, which shoulda be there in any case. |
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 |
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. |
ef79eba84348e4f8c99402de06afa2237a856049 602542 |
|
08-Dec-2007 |
rpluem |
* Enable the proxy to keep connections persistent in the HTTPS case.
Basicly the persistence is created by keeping the conn_rec structure
created for our backend connection (whether http or https) in the connection
pool. This required to adjust scoreboard.c in a way that its functions can
properly deal with a NULL scoreboard handle by ignoring the call or returning
an error code. |
795c9499a77c25695bcb9710ed67bbe51492e181 591760 |
|
04-Nov-2007 |
rpluem |
* Use the same declaration for ap_time_process_request as in the header file.
PR: 43789
Submitted by: Tom Donovan <Tom.Donovan acm.org>
Reviewed by: rpluem |
936a4025e45887d9f366bf54360c51937b6bcace 590641 |
|
31-Oct-2007 |
jim |
Add in SeeRequestTail directive, to handle the shortcoming
of only storing 63 bytes of the request, when the requests
are longer than that and only vary towards the end; eg:
GET /disk1/storage/apache/htdocs/images/image-store1/food/fruits/seeded/apples.jpg
GET /disk1/storage/apache/htdocs/images/image-store1/food/fruits/seeded/pears.jpg
GET /disk1/storage/apache/htdocs/images/image-store1/food/fruits/seeded/plums.jpg |
7a079e0cd696baca90ac43e325f64582e2945c68 587771 |
|
24-Oct-2007 |
wrowe |
Actually re-fix Christian's recommendation, someone previously caught this. |
a72ba68ecbbc61e4b513e50d6000245c33f753dc 587770 |
|
24-Oct-2007 |
wrowe |
MMN major bump required; this API is altogether inconsistent, transparent
types should be opaque, opaque types should be transparent.
Solve one aspect, follow the _by_indexes() example for ap_get_scoreboard_worker
family of functions, and the primary one will now accept the abstracted conn_rec
value of sbh to find that connections slot. |
f427f572e575740010fd835155b8aed60d458e36 578620 |
|
24-Sep-2007 |
niq |
PR 40037: try to avoid risk of misleading the lusers when they
can't initialise scoreboard after a crash. |
64518a30734706ba5340f4c8d85ceb5e767f6fe4 574931 |
|
12-Sep-2007 |
jim |
Some minor cleanups:
1. Rename worker_size, since this could easily be
confused with the actual MPM worker struct stuff.
2. Remove superflous ()s in the || test
3. Add superflous () in the pointer adjusting :)
Even though C prec rules make it clear what we
are doing, make it painfully obvious. Remove
unrequired temp var. |
7a3f81622e6b6995e0e879b1c0279ba68130b4b1 574843 |
|
12-Sep-2007 |
jfclere |
lb_score is bigger proxy_worker_stat. Prevent wasting space. |
50a524c3834c0abefd325e0e3852e5c262446768 574052 |
|
09-Sep-2007 |
jim |
Reinsert extern int PROXY_DECLARE_DATA proxy_lb_workers
into the Proxy API. |
d9b12166875edee8979f2bd4ad3927e4ed7fdc4b 551835 |
|
29-Jun-2007 |
jorton |
Revert r547987 ("svn merge -c -547987 .") |
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. |
842ae4bd224140319ae7feec1872b93dfd491143 420983 |
|
11-Jul-2006 |
fielding |
update license header text |
42f84b5edb3f510279bdbf30b476853646362cc7 417252 |
|
26-Jun-2006 |
wrowe |
Make the range test legible; in the process, uncover and close
a bounds overflow condition. |
fc74be6ea692b75733b9a8a624446851ddfbcb12 405665 |
|
10-May-2006 |
martin |
Typo (..for use with by the scoreboard) changed to
"..for use by the scoreboard" (not 100% sure -- or
should it be "..for use with the scoreboard"?) |
da778e0a02597cdf01734d3c3f195c9abd386b8d 404848 |
|
07-May-2006 |
niq |
Scoreboard size (Chris Darroch) |
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 |
179a355e3801a2c2e0a895964cf39488bac3c9cc 154216 |
|
18-Feb-2005 |
wrowe |
Fix some symbols which should -not- be exported, and decorate real_exit_code
with ap_ (this symbol must be exported.) If the others were desired to be
public, they should have been ap_xxx decorated. |
08cb74ca432a8c24e39f17dedce527e6a47b8001 151408 |
|
04-Feb-2005 |
jerenkrantz |
Update copyright year to 2005 and standardize on current copyright owner line. |
8e61fed2dadbdfc73ad0ec346b95de52c26ff779 149550 |
|
02-Feb-2005 |
jim |
Keep track of time taken to process requests again. |
aecb17a45c6d3ee4729ed5f68dc4270f211ee7a8 105572 |
|
24-Oct-2004 |
fielding |
veto and revert win64 patch: 64bit changes must percolate from the
bottom (APR/system) up -- we can't give the client a 64bit API and
then cast it to 32bits internally without introducing security holes
on other platforms. |
666d616b7986a83bb0eac453694fbf4d6f05b98c 105545 |
|
22-Oct-2004 |
ake |
WIN64: API changes to clean up Windows 64bit compile warnings |
48186fdd7ff779f90e6e9abcd908285473c2ed21 105247 |
|
22-Sep-2004 |
jorton |
* server/scoreboard.c (create_namebased_scoreboard): Use
apr_shm_remove() rather than the unsufficient apr_file_remove().
PR: 27189 |
1f103590bc60f6112d3cbb9158ea43afd5b7c94b 105134 |
|
15-Sep-2004 |
mturk |
Worker shared data has to be visible across all child processes,
so remove creating that data on per-child basis. |
1551c2366551d7a361bedbf7ae54f1abd74ef822 104404 |
|
29-Jul-2004 |
minfrin |
Add load balancer support to the scoreboard in preparation for
load balancing support in mod_proxy.
PR:
Obtained from:
Submitted by: Mladen Turk <mturk@apache.org>
Reviewed by: |
6de8046f8f7e07cd83895a528df25d977e502c76 102619 |
|
09-Feb-2004 |
nd |
fix name of The Apache Software Foundation |
2af7ecf8c1589908aac793c154942d3cb3f6e492 102589 |
|
08-Feb-2004 |
nd |
fix copyright dates according to the first check in |
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dc 102525 |
|
06-Feb-2004 |
nd |
apply Apache License, Version 2.0 |
26a4456dd6f1a5d7d7fff766551461a578687c4a 102135 |
|
01-Jan-2004 |
nd |
update license to 2004. |
f44d011602d9cb572f9f120cb2ca652861e145bb 99055 |
|
24-Mar-2003 |
martin |
On failures, try to add a hint what went wrong |
33bdcae1f7a1a65e351dda2a766a0cf28b1e695d 98573 |
|
03-Feb-2003 |
nd |
finished that boring job:
update license to 2003.
Happy New Year! ;-)) |
2d399cd7535887fceaa9f8f116eb98ce68ddd602 95149 |
|
17-May-2002 |
trawick |
stop using APLOG_NOERRNO in calls to ap_log_?error() |
682f36ea65d1019445d19544dbff511049d105db 94430 |
|
04-Apr-2002 |
aaron |
Fix a potential size mismatch (apr_off_t might be 64bits on some platforms). |
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: |
2e783def5a34a8d5b1eac67f3806cefc0a282627 94060 |
|
20-Mar-2002 |
trawick |
ap_create_scoreboard() now initializes the scoreboard if it already exists,
so MPMs shouldn't call it for a graceful restart |
459c461be0bf5495979e8f7ec854fa0905320fe6 94040 |
|
20-Mar-2002 |
wrowe |
The source of some ills ... there is no reason to keep going if the
scoreboard exists. I suspect this should be a general cleanup as well
[at the end of ap_create_scoreboard.] But calling ap_run_pre_mpm with
the process->pool should take care of a clobbered scoreboard shm on
graceful restart. |
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. |
f51dbb1f5b66d94b5c190bfcd444aa73bdc2b176 93900 |
|
13-Mar-2002 |
trawick |
Fix the calculation of thread_num in the worker score structure.
Submitted by: Stas Bekman
Reviewed by: Jeff Trawick |
584934876c0629dc4615202715e59c541f807127 93590 |
|
27-Feb-2002 |
dougm |
ap_calc_scoreboard_size() needs to be exported for win32 |
e1384556b848954fbf9f52a281b8545e35ba28b3 93563 |
|
25-Feb-2002 |
jwoolley |
remove a tab |
bf5cf58cc30750e9f9764cc830aff426ced288f9 93523 |
|
21-Feb-2002 |
aaron |
Placing the thread-limit and server-limit values, those which define the
size of internal structures in the scoreboard, actually into the
scoreboard allow third-party applications to access those structures.
Submitted by: Adam Sussman <myddryn@vishnu.vidya.com>
Reviewed by: Aaron Bannert |
e37c657172940f82d9b28a45fc1304140eb0b1d7 93502 |
|
19-Feb-2002 |
stoddard |
This fixes a bug in mod_status on Windows where restart time was not
properly initialized.
Move ap_restart_time into the scoreboard global area so the child process
on non-forking platforms can have access to it. |
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 |
36ef8f8431be2b99d96f8eb53cc3bc113816b408 93166 |
|
01-Feb-2002 |
bnicholes |
Moved the #endif of APR_HAS_SHARED_MEMORY to include a reference
to the global variable ap_scoreboard_shm. Since this variable was already
being excluded by APR_HAS_SHARED_MEMORY at the beginning of the
file. |
24ec5bb68d373776b96cb1628b5f833a295173df 93159 |
|
01-Feb-2002 |
aaron |
Create the scoreboard (in the parent) in a global pool context, so it
survives graceful restarts. This fixes a SEGV during graceful restarts.
Children who attach to this scoreboard keep the same pool as before (pchild)
since they should detach/unmap when the child process exits. |
169be500e5f4a70c6f299888f37f348803811b07 93119 |
|
30-Jan-2002 |
rbb |
Change the Windows MPM to only use the pre_mpm phase in the parent process.
The child processes use the child_init phase to reattach to the shared
memory. This makes Windows work like Unix, which should make it easier
for module authors to write portable modules. |
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 |
270f3920cafafbc2384ee8c2aa9a73a24457568e 93028 |
|
25-Jan-2002 |
trawick |
axe an unused variable
don't pass uninitialized rv to ap_log_error as the error code |
f65342c1467751310036d4f9d75f554eaaf01cc6 93027 |
|
25-Jan-2002 |
wrowe |
No. I don't like this patch. I like what it does [shared scoreboard
for Windows, finally] but not how it's implemented.
However it works, and is equally crufty to what already exists for
win32 listeners and other exposed data within scoreboard.c.
To do this right, we need to drop all the external references to data
within the scoreboard, and add an accessor for remaining bits (such as
Win32's need for direct access to the apr_shm_t.) And within Win32,
we need to stack all this _within_ the pre-mpm hook. But those are
missions in and of themselves. |
03418a1581f548ed32af1e6ad360bdbfd7bfe819 92996 |
|
24-Jan-2002 |
wrowe |
A quick hack around Aaron's patch. Win32 'supports' anon shm, but
Apache's implementation requires fork(). |
0047121d20ffbd30d9923fd2947d1a38cab880e2 92981 |
|
23-Jan-2002 |
aaron |
Just a style update before I work on this thing any more. Removed
tabs and lined up parameters and indentation. |
8a26dbe1da65d61ed277404f4e4d382bb53f3712 92978 |
|
23-Jan-2002 |
aaron |
Although this patch is technically correct, I'm not happy with
the way it gets things done. OTOH, it is a simple enough change
to get things working correctly for now. I will come up with
the right way to do this in the next couple days.
This patch re-enables the use of anonymous shared memory in the
scoreboard on platforms that have it. |
ecda38b08fbaa5d82a699cf6e2916a88c606f6ec 92854 |
|
14-Jan-2002 |
bnicholes |
Added APR_HAS_SHARED_MEMORY to a section of code where it was
missing, for those of us that don't have shared memory support. |
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. |
0b34ad9a705c62a86007e2fc88c13adf2671cc27 92661 |
|
30-Dec-2001 |
bjh |
Make calc_scoreboard_size() and init_scoreboard() usable from MPMs. |
f289872b1e18c01d5cfb7df8afacebbfcdaa99fb 92595 |
|
24-Dec-2001 |
trawick |
fix a horrible bug which caused scoreboard initialation to always exit |
87e4b783846721a522e45cb2c6667e82acb92f61 92592 |
|
24-Dec-2001 |
trawick |
The scoreboard is no longer created while we can write to
stderr, so call ap_log_error() to note problems allocating
the scoreboard.
apr_shm_malloc() doesn't set any kind of error code, so don't
try to reference errno.
setup_shared() now returns an error code to its caller rather
than exiting directly. This isn't a complete fix, as
ap_create_scoreboard() needs to do the same thing. Currently,
when we can't allocate the scoreboard we leave the mod_cgid
daemon process stranded. |
da885f8529a499c96c4489ae7d03762b97da5394 92564 |
|
21-Dec-2001 |
wrowe |
Clean up a compiler emit for signedness |
ca47a2b6bcea23e8af185c68f256dcbbfd2a0f9d 92512 |
|
18-Dec-2001 |
trawick |
Change core code to allow an MPM to set hard thread/server
limits at startup. |
c2dee9d7d94c032b0ad1b110b5517fb85a4ef39e 92377 |
|
07-Dec-2001 |
aaron |
Provide an accessor function for the global_score portion of the scoreboard.
Submitted by: Harrie Hazewinkel <harrie@covalent.net>
Reviewed by: Aaron Bannert |
3ecb7fd34056ea57c5f237d5f89f7d10fea059dd 92375 |
|
07-Dec-2001 |
aaron |
Export ap_get_parent_scoreboard and ap_get_servers_scoreboard to be
usable on Win32 and friends.
Submitted by: Harrie Hazewinkel <harrie@covalent.net>
Reviewed by: Aaron Bannert |
f523ea9877e759613ebaf655eb5ed33fe6f237ab 91667 |
|
26-Oct-2001 |
gregames |
prevent seg faults in mod_status trying to access vhost structures from
the former generation, after a restart. It happens mostly when the MPM has
threads. |
17f77e3bb7dc5bbbcfad34e974d9707cfbfde52f 90814 |
|
30-Aug-2001 |
trawick |
when we bail out due to a fatal error in apr_shm_init(), be sure
to print the apr_status_t in numeric form
the old message
lt-httpd: could not open(create) scoreboard: Unknown resolver error
wasn't so useful, but the new, improved message
lt-httpd: could not open(create) scoreboard: (22528)Unknown resolver error
makes it look like a syscall is returning ENOSPC and that apr shmem
is returning (APR_OS_START_SYSERR + errno) instead of simply errno.
off to APR land... |
8b99f2a316c5e2fa6ab208206fdd7fc2bfc4a921 90361 |
|
19-Aug-2001 |
dougm |
adjust to apr_uri_ rename |
ab5dc1422ca0de9fdbfe827a0610b43512f47327 90359 |
|
19-Aug-2001 |
dougm |
adjust to UNP_ -> APR_URI_UNP_ rename |
e082e1475e79ee3ee362e5230414a1531a73e822 90015 |
|
08-Aug-2001 |
gregames |
clean up the scoreboard properly after threaded processes die gracefully.
find_child_by_pid() failed to do its job, because ap_max_daemons_used was
too low. There was some recent breakage in threaded that contributes to
the problem.
However, find_child_by_pid() should not be using the current number of
daemons. It could have been recently reduced, which makes it fail to
find the exiting process. |
f8f2d2a75941db3ea53109a6981efbad521cbba0 89842 |
|
31-Jul-2001 |
wrowe |
Exported symbols for mod_pop |
35cbd25ebe0e9b4ed99d43778ec19d5901ef1d96 89660 |
|
23-Jul-2001 |
gregames |
prevent seg faults in mod_status with ExtendedStatus enabled, after
a restart. A pointer to the previous generation's vhost server_rec
could be left in the worker_score under certain conditions. |
1858f59fe49e5d05b9b9e3aae1c49a835a004801 89609 |
|
18-Jul-2001 |
wrowe |
Fix ap_create_scoreboard fooness on Win32. |
65db4f712167a3498de73cee5c08032a8aa6a010 89608 |
|
18-Jul-2001 |
rbb |
Make scoreboard creation a hook. This allows management
modules to have access to the scoreboard at the time that it is
created, and at every restart request.
Submitted by: Cody Sherr <csherr@covalent.net>
Reviewed by: Ryan Bloom |
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 |
30284841436ed073aa985c312a937662ab9e9cbb 89554 |
|
16-Jul-2001 |
rbb |
Remove a couple fields from the scoreboard that aren't currently used.
If we need these, they should be added when we begin to use them. |
ec020ca384efb30d501a5af796ddc3bb237d7b8f 89542 |
|
12-Jul-2001 |
gregames |
scratch an old itch - give lingering close its own state in the scoreboard.
clean up SERVER_ACCEPTING and SERVER_QUEUEING (never set) while I'm at it. |
3b8937baf1826c625c1ca90d220453a5e4b499ed 89532 |
|
10-Jul-2001 |
rbb |
Add two functions to allow modules to access random parts of the
scoreboard. This allows modules compiled for one MPM to access the
scoreboard, even if it the server was compiled for another MPM.
Submitted by: Harrie Hazewinkel <harrie@covalent.net> |
864c5615d55b8ebbde24e72043f6325741335a74 89198 |
|
22-May-2001 |
fielding |
Moved util_uri to apr-util/uri/apr_uri, which means adding the apr_
prefix to all of the uri functions (yuck), changing some includes,
and using APR error codes instead of HTTP-specific error codes.
Other notes to test this patch:
- You need to delete the util_uri.h file - exports picks up on this.
- I'd like to remove the apr_uri.h from httpd.h, but that might
increase the complexity of this patch even further. Once this patch
is accepted (in some form), then I can focus on removing apr_uri.h
from httpd.h entirely. I need baby steps (heh) right now.
- I imagine that this might break a bunch of stuff in Win32 or other OS
builds with foreign dependency files. Any help here is appreciated.
This is a start... -- justin
Submitted by: Justin Erenkrantz
Reviewed by: Roy Fielding |
aa616c3b5a4aa59867472cddf7d8e63693808f0e 89115 |
|
15-May-2001 |
rederpj |
Make first phase changes to the scoreboard data structures in
preparation for the rewriting of the scoreboard per my posted
design notes. [Paul J. Reder] |
68a3c538fcc9ef3603ce1013e30a4602984f42a0 89050 |
|
07-May-2001 |
trawick |
fix some generation logic/displays in mod_status by setting
the generation field in parent_score |
0f113d7123e8bd3e3e2e9b6373461a1a773bfcca 89048 |
|
07-May-2001 |
trawick |
minor scoreboard/status improvements:
. get the SS field in extended status output formatted correctly
(seconds since beginning of request shouldn't be a huge
negative number :) )
. use APR_OS_PID_T_FMT and pid_t where appropriate in mod_status
to avoid casting, some of which may have been broken on some
architectures |
928f342270fd8ca02a36f484072d35063121171f 88484 |
|
09-Mar-2001 |
trawick |
tweak ap_get_remote_host() so that the caller can find out if she got
back an IP address
mod_access needed to know this, but the old code didn't handle IPv6 |
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> |
a7ed9c525f9460187f327cea953bf90ecf1bdc51 88298 |
|
24-Feb-2001 |
gstein |
*) fix inline handling. we had: apr_inline, APR_INLINE, USE_GNU_INLINE, and
INLINE. Now, we just have APR_INLINE and APR_HAS_INLINE.
- convert all usage
- note that apr_general messed up the defn (compared to apr.h)
- simplify the inline decision logic in os/*/os.h
- simplify the code in os/*/os-inline.c
*) toss ap_checkconv() [no longer used] |
b99dbaab171d91e1b664397cc40e039d0c087c65 88184 |
|
16-Feb-2001 |
fielding |
Update copyright to 2001 |
3c25660b5bd894a57a90a8fb78d47e2c489ba581 88151 |
|
14-Feb-2001 |
stoddard |
Start getting extended status working again. |
2d8bfa7aed1573bb72bc60a2aeeb369c095df726 88102 |
|
12-Feb-2001 |
gstein |
*) include the strings stuff the right way (some platforms use string.h;
apr_want figures all that out for us)
*) include ap_mpm.h to pick up a moved func declaration |
e9e55d1ae4d0f0ee62d73e76cffb40f0d5b5a5cc 88094 |
|
11-Feb-2001 |
ben |
Fix a warning. |
1b21d7b3d97def358b2e923655edeb16613a1c31 88060 |
|
10-Feb-2001 |
gstein |
Clean up some of the includes:
- explicitly include apr_lib.h since ap_config.h doesn't
- use apr_want.h where possible
- use APR_HAVE_ where possible
- remove some unneeded includes |
750ec6495c0f3f2786f0655420fe604a1a91725b 88045 |
|
10-Feb-2001 |
gstein |
*) remove obsolete http_conf_globals.h
*) simplify all this #ifdef'ing: just nuke the unixd.h header. it isn't
actually needed. |
f6f8d06ef9dc2f04d08775e6a998be731e8f7ec5 88043 |
|
10-Feb-2001 |
dreid |
BeOS doesn't have unixd.h either. |
d67cd7ec1d8798341286a656a7da90ddc624e372 88037 |
|
09-Feb-2001 |
stoddard |
Replace reinit_scoreboard with ap_create_scoreboard. |
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: |
548532af9d0f7dba4de98fda5ee95c725b31082f 88013 |
|
07-Feb-2001 |
rbb |
Fix graceful shutdown with the scoreboard changes. Basically, we want
to set the sb_type only after we zero out the scoreboard. Before this,
we were segfaulting when we tried to free() a shared memory scoreboard. |
6bcee6b60a2fc4c96328af30e79bad4927ff30f3 88012 |
|
07-Feb-2001 |
rbb |
Get the Unix MPMs restarting again. If we are going to register a cleanup
for ap_cleanup_scoreboard, then we have to kill that cleanup with the same
function. This also makes ap_cleanup_scoreboard a non-static function, and
makes ap_cleanup_shared_mem a static function. |
bcef91d7068817e2e56854f5c5b22b6eb4663a85 87994 |
|
06-Feb-2001 |
rbb |
Setup the server start time correctly. This also gets the server uptime
to be reported correctly. I have also moved this code into a common
location, so that individual MPMs do not need to worry about setting up
the start time. |
a95d26c04471ed0f87959d1d1697aabc1ec6af52 87989 |
|
06-Feb-2001 |
bjh |
Get OS/2 MPM running again after the reunification of the scoreboard code.
mod_status still doesn't work right, I'll look into that next. |
48a2c0163890139007d2f0f007c66349cb57dd92 87963 |
|
03-Feb-2001 |
trawick |
cleanups need to return apr_status_t |
36b0d7bc1117c55c6891ad74a2210a817eb12234 87960 |
|
02-Feb-2001 |
stoddard |
Ooops, that S and D are right next to each other. |
5a58a10705b7b154b53294e0c0283d64eabdcb7f 87959 |
|
02-Feb-2001 |
stoddard |
Begin restructuring scoreboard code to enable adding back in
the ability to use IPC other than shared memory.
Get mod_status working on Windows again.
Still to do:
Rename some of the function APIs. Replace all calls to reinit_scoreboard with
ap_create_scoreboard. Add back in support for scoreboard files. |
3568de757bac0b47256647504c186d17ca272f85 87949 |
|
01-Feb-2001 |
rbb |
Bring mod_status for 2.0 back in line with mod_status for 1.3. This is
basically a straight port of the 1.3 module to 2.0. The MPMs need to be
modified a bit to work with mod_status, but prefork, mpmt_pthread, and
dexter have already been changed. I will fix perchild tonight. There
is a lot of common code that can be abstracted, and there seems to be a
small bug with regard to what mpmt_pthread and dexter report as current
connections. ExtendedStatus does work again, although until the bug
mentioned above is fixed, it isn't as useful on mpmt_pthread and dexter.
Next week, I will look at allowing other modules to add data to the
STATUS page and possibly to the scoreboard itself. |