/[Apache-SVN]/httpd/httpd/branches/2.2.x/server/scoreboard.c
ViewVC logotype

Log of /httpd/httpd/branches/2.2.x/server/scoreboard.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (annotate)
Sticky Revision:

Revision 661691 - (view) (annotate) - [select for diffs]
Modified Fri May 30 12:38:46 2008 UTC (17 months, 4 weeks ago) by jim
File length: 16148 byte(s)
Diff to previous 657440 (colored)
backport scoreboard-lb_score-2.2.x.patch


Revision 657440 - (view) (annotate) - [select for diffs]
Modified Sat May 17 19:42:03 2008 UTC (18 months, 1 week ago) by rpluem
File length: 16210 byte(s)
Diff to previous 602508 (colored)
* Merge r602542, r603237, r603502, r603543, r604447, r604449, r605314,
  r605838 from trunk:

* 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.

* Use a separate subpool to manage the data for the socket and the connection
  member of the proxy_conn_rec struct as we destroy this data more frequently
  than other data in the proxy_conn_rec struct like hostname and addr (at least
  in the case where we have keepalive connections that timed out and were
  closed by the backend).
  This fixes a memory leak with short lived and broken connections.

* Fix another memory leak related to PR 44026. Now that we keep the connection
  data structure alive in the reslist, the live time of c->pool is too long.
  r->pool has the correct live time since rp dies before r.

* Do not register connection_cleanup as cleanup for the conn->pool. In the past
  it was needed to register connection_cleanup as a cleanup for the frontend
  connection memory pool (c->pool) to ensure that connection returns into the
  connection pool if the memory pool of the frontend connection memory pool
  gets destroyed / cleared. Now we ensure explicitly the connection returns
  to the connection pool once we finished handling the request.

* Tag the pools appropriately to ease memory debugging.

* Only sent a flush bucket down the chain if buckets where sent down the chain
  before that could still be buffered in the network filter. This is the case
  if we have sent an EOS bucket or if we actually sent buckets with
  data down the chain. In all other cases we either have not sent any
  buckets at all down the chain or we only sent meta buckets that are
  not EOS buckets down the chain. The only meta bucket that remains in
  this case is the flush bucket which would have removed all possibly
  buffered buckets in the network filter.
  If we sent a flush bucket in the case where not ANY buckets were
  sent down the chain, we break error handling which happens AFTER us.

* Using the reslist pool for the proxy_conn_rec structure introduces a memory
  leak when connections get created and destroyed frequently by the reslist
  (e.g.  destroying idle elements of the reslist). So use the subpool
  dedicated for the proxy_conn_rec structure to allocate the memory for the
  structure itself.

PR: 44026, 44543
Submitted by: rpluem
Reviewed by: jim, rpluem, fielding

Revision 602508 - (view) (annotate) - [select for diffs]
Modified Sat Dec 8 16:59:08 2007 UTC (23 months, 2 weeks ago) by rpluem
File length: 16115 byte(s)
Diff to previous 582621 (colored)
Merge 590641 from trunk:

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

Submitted by: jim
Reviewed by: jim, rpluem, niq

Revision 582621 - (view) (annotate) - [select for diffs]
Modified Sun Oct 7 12:31:44 2007 UTC (2 years, 1 month ago) by rpluem
File length: 15662 byte(s)
Diff to previous 421103 (colored)
Merge r578620 from trunk:

PR 40037: try to avoid risk of misleading the lusers when they
can't initialise scoreboard after a crash.

Submitted by: niq
Reviewed by: niq, rpluem, trawick

Revision 421103 - (view) (annotate) - [select for diffs]
Modified Wed Jul 12 03:38:44 2006 UTC (3 years, 4 months ago) by fielding
File length: 15642 byte(s)
Diff to previous 396056 (colored)
update license header text

Revision 396056 - (view) (annotate) - [select for diffs]
Modified Sat Apr 22 01:53:06 2006 UTC (3 years, 7 months ago) by pquerna
File length: 15495 byte(s)
Diff to previous 395231 (colored)
Revert r395231 from the 2.2.x branch.  This gets us back to the old place with regard to the copyright statements.

Revision 395231 - (view) (annotate) - [select for diffs]
Modified Wed Apr 19 12:33:16 2006 UTC (3 years, 7 months ago) by colm
File length: 15495 byte(s)
Diff to previous 332309 (colored)
Update the last year of copyright for the 2.2.x branch

Revision 332309 - (view) (annotate) - [select for diffs]
Modified Thu Nov 10 15:20:05 2005 UTC (4 years ago) by jim
File length: 15495 byte(s)
Diff to previous 234103 (colored)
No functional change: remove trailing whitespace. This also means
that "blank" lines, which had consisted of just spaces
and/or tabs are now truly blank lines

Revision 234103 - (view) (annotate) - [select for diffs]
Modified Sat Aug 20 18:21:45 2005 UTC (4 years, 3 months ago) by pquerna
File length: 15529 byte(s)
Diff to previous 154216 (colored)
Recreate 2.2.x branch from trunk.

Revision 154216 - (view) (annotate) - [select for diffs]
Modified Fri Feb 18 00:00:37 2005 UTC (4 years, 9 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 15529 byte(s)
Diff to previous 151408 (colored)
  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.

Revision 151408 - (view) (annotate) - [select for diffs]
Modified Fri Feb 4 20:28:49 2005 UTC (4 years, 9 months ago) by jerenkrantz
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 15541 byte(s)
Diff to previous 149550 (colored)
Update copyright year to 2005 and standardize on current copyright owner line.

Revision 149550 - (view) (annotate) - [select for diffs]
Modified Wed Feb 2 19:32:18 2005 UTC (4 years, 9 months ago) by jim
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 15505 byte(s)
Diff to previous 106103 (colored)
Keep track of time taken to process requests again.

Revision 106103 - (view) (annotate) - [select for diffs]
Modified Sun Nov 21 18:50:36 2004 UTC (5 years ago) by nd
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 15500 byte(s)
Diff to previous 105572 (colored)
general property cleanup

Revision 105572 - (view) (annotate) - [select for diffs]
Modified Sat Oct 23 22:39:53 2004 UTC (5 years, 1 month ago) by fielding
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 15500 byte(s)
Diff to previous 105545 (colored)
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.

Revision 105545 - (view) (annotate) - [select for diffs]
Modified Fri Oct 22 15:22:05 2004 UTC (5 years, 1 month ago) by ake
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 15507 byte(s)
Diff to previous 105247 (colored)
WIN64: API changes to clean up Windows 64bit compile warnings

Revision 105247 - (view) (annotate) - [select for diffs]
Modified Wed Sep 22 13:35:31 2004 UTC (5 years, 2 months ago) by jorton
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 15500 byte(s)
Diff to previous 105134 (colored)
* server/scoreboard.c (create_namebased_scoreboard): Use
apr_shm_remove() rather than the unsufficient apr_file_remove().

PR: 27189

Revision 105134 - (view) (annotate) - [select for diffs]
Modified Wed Sep 15 12:08:39 2004 UTC (5 years, 2 months ago) by mturk
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 15501 byte(s)
Diff to previous 104404 (colored)
Worker shared data has to be visible across all child processes,
so remove creating that data on per-child basis.

Revision 104404 - (view) (annotate) - [select for diffs]
Modified Wed Jul 28 22:50:54 2004 UTC (5 years, 4 months ago) by minfrin
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 15930 byte(s)
Diff to previous 102619 (colored)
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:

Revision 102619 - (view) (annotate) - [select for diffs]
Modified Mon Feb 9 20:40:53 2004 UTC (5 years, 9 months ago) by nd
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 14449 byte(s)
Diff to previous 102589 (colored)
fix name of The Apache Software Foundation

Revision 102589 - (view) (annotate) - [select for diffs]
Modified Sun Feb 8 13:58:22 2004 UTC (5 years, 9 months ago) by nd
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 14445 byte(s)
Diff to previous 102525 (colored)
fix copyright dates according to the first check in

Revision 102525 - (view) (annotate) - [select for diffs]
Modified Fri Feb 6 22:58:42 2004 UTC (5 years, 9 months ago) by nd
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 14445 byte(s)
Diff to previous 102135 (colored)
apply Apache License, Version 2.0

Revision 102135 - (view) (annotate) - [select for diffs]
Modified Thu Jan 1 13:26:26 2004 UTC (5 years, 10 months ago) by nd
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 16664 byte(s)
Diff to previous 99055 (colored)
update license to 2004.

Revision 99055 - (view) (annotate) - [select for diffs]
Modified Mon Mar 24 08:51:22 2003 UTC (6 years, 8 months ago) by martin
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 16664 byte(s)
Diff to previous 98573 (colored)
On failures, try to add a hint what went wrong

Revision 98573 - (view) (annotate) - [select for diffs]
Modified Mon Feb 3 17:53:28 2003 UTC (6 years, 9 months ago) by nd
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 16650 byte(s)
Diff to previous 95149 (colored)
finished that boring job:
update license to 2003.

Happy New Year! ;-))

Revision 95149 - (view) (annotate) - [select for diffs]
Modified Fri May 17 11:11:39 2002 UTC (7 years, 6 months ago) by trawick
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 16650 byte(s)
Diff to previous 94430 (colored)
stop using APLOG_NOERRNO in calls to ap_log_?error()

Revision 94430 - (view) (annotate) - [select for diffs]
Modified Thu Apr 4 06:39:22 2002 UTC (7 years, 7 months ago) by aaron
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 16682 byte(s)
Diff to previous 94306 (colored)
Fix a potential size mismatch (apr_off_t might be 64bits on some platforms).

Revision 94306 - (view) (annotate) - [select for diffs]
Modified Fri Mar 29 14:33:50 2002 UTC (7 years, 8 months ago) by jim
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 16713 byte(s)
Diff to previous 94060 (colored)
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:

Revision 94060 - (view) (annotate) - [select for diffs]
Modified Wed Mar 20 20:30:46 2002 UTC (7 years, 8 months ago) by trawick
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 17562 byte(s)
Diff to previous 94040 (colored)
ap_create_scoreboard() now initializes the scoreboard if it already exists,
so MPMs shouldn't call it for a graceful restart

Revision 94040 - (view) (annotate) - [select for diffs]
Modified Wed Mar 20 06:04:51 2002 UTC (7 years, 8 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 17214 byte(s)
Diff to previous 93965 (colored)
  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.

Revision 93965 - (view) (annotate) - [select for diffs]
Modified Sat Mar 16 18:26:58 2002 UTC (7 years, 8 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 17325 byte(s)
Diff to previous 93918 (colored)
  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.

Revision 93918 - (view) (annotate) - [select for diffs]
Modified Wed Mar 13 20:48:07 2002 UTC (7 years, 8 months ago) by fielding
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 17077 byte(s)
Diff to previous 93900 (colored)
Update our copyright for this year.

Revision 93900 - (view) (annotate) - [select for diffs]
Modified Wed Mar 13 12:25:31 2002 UTC (7 years, 8 months ago) by trawick
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 17077 byte(s)
Diff to previous 93590 (colored)
Fix the calculation of thread_num in the worker score structure.

Submitted by:   Stas Bekman
Reviewed by:    Jeff Trawick

Revision 93590 - (view) (annotate) - [select for diffs]
Modified Wed Feb 27 04:10:19 2002 UTC (7 years, 9 months ago) by dougm
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 17077 byte(s)
Diff to previous 93563 (colored)
ap_calc_scoreboard_size() needs to be exported for win32

Revision 93563 - (view) (annotate) - [select for diffs]
Modified Mon Feb 25 02:10:52 2002 UTC (7 years, 9 months ago) by jwoolley
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 17065 byte(s)
Diff to previous 93523 (colored)
remove a tab

Revision 93523 - (view) (annotate) - [select for diffs]
Modified Thu Feb 21 01:30:06 2002 UTC (7 years, 9 months ago) by aaron
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 17062 byte(s)
Diff to previous 93502 (colored)
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

Revision 93502 - (view) (annotate) - [select for diffs]
Modified Tue Feb 19 21:09:27 2002 UTC (7 years, 9 months ago) by stoddard
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 16938 byte(s)
Diff to previous 93434 (colored)
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.

Revision 93434 - (view) (annotate) - [select for diffs]
Modified Fri Feb 15 20:48:19 2002 UTC (7 years, 9 months ago) by aaron
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 16960 byte(s)
Diff to previous 93166 (colored)
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

Revision 93166 - (view) (annotate) - [select for diffs]
Modified Fri Feb 1 18:07:08 2002 UTC (7 years, 9 months ago) by bnicholes
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 16112 byte(s)
Diff to previous 93159 (colored)
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.

Revision 93159 - (view) (annotate) - [select for diffs]
Modified Fri Feb 1 17:22:57 2002 UTC (7 years, 9 months ago) by aaron
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 16112 byte(s)
Diff to previous 93119 (colored)
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.

Revision 93119 - (view) (annotate) - [select for diffs]
Modified Wed Jan 30 22:35:57 2002 UTC (7 years, 9 months ago) by rbb
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 15429 byte(s)
Diff to previous 93055 (colored)
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.

Revision 93055 - (view) (annotate) - [select for diffs]
Modified Mon Jan 28 00:41:32 2002 UTC (7 years, 10 months ago) by trawick
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 15757 byte(s)
Diff to previous 93028 (colored)
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

Revision 93028 - (view) (annotate) - [select for diffs]
Modified Fri Jan 25 12:04:56 2002 UTC (7 years, 10 months ago) by trawick
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 15829 byte(s)
Diff to previous 93027 (colored)
axe an unused variable

don't pass uninitialized rv to ap_log_error as the error code

Revision 93027 - (view) (annotate) - [select for diffs]
Modified Fri Jan 25 07:21:40 2002 UTC (7 years, 10 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 15860 byte(s)
Diff to previous 92996 (colored)
  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.

Revision 92996 - (view) (annotate) - [select for diffs]
Modified Thu Jan 24 07:47:10 2002 UTC (7 years, 10 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 16073 byte(s)
Diff to previous 92981 (colored)
  A quick hack around Aaron's patch.  Win32 'supports' anon shm, but
  Apache's implementation requires fork().

Revision 92981 - (view) (annotate) - [select for diffs]
Modified Wed Jan 23 18:11:40 2002 UTC (7 years, 10 months ago) by aaron
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 16040 byte(s)
Diff to previous 92978 (colored)
Just a style update before I work on this thing any more. Removed
tabs and lined up parameters and indentation.

Revision 92978 - (view) (annotate) - [select for diffs]
Modified Wed Jan 23 06:51:18 2002 UTC (7 years, 10 months ago) by aaron
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 15407 byte(s)
Diff to previous 92854 (colored)
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.

Revision 92854 - (view) (annotate) - [select for diffs]
Modified Mon Jan 14 22:36:03 2002 UTC (7 years, 10 months ago) by bnicholes
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 15009 byte(s)
Diff to previous 92791 (colored)
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.

Revision 92791 - (view) (annotate) - [select for diffs]
Modified Thu Jan 10 00:28:00 2002 UTC (7 years, 10 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 14934 byte(s)
Diff to previous 92661 (colored)
  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.

Revision 92661 - (view) (annotate) - [select for diffs]
Modified Sun Dec 30 13:27:48 2001 UTC (7 years, 10 months ago) by bjh
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 14044 byte(s)
Diff to previous 92595 (colored)
Make calc_scoreboard_size() and init_scoreboard() usable from MPMs.

Revision 92595 - (view) (annotate) - [select for diffs]
Modified Mon Dec 24 21:00:18 2001 UTC (7 years, 11 months ago) by trawick
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 14019 byte(s)
Diff to previous 92592 (colored)
fix a horrible bug which caused scoreboard initialation to always exit

Revision 92592 - (view) (annotate) - [select for diffs]
Modified Mon Dec 24 13:18:44 2001 UTC (7 years, 11 months ago) by trawick
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 13979 byte(s)
Diff to previous 92564 (colored)
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.

Revision 92564 - (view) (annotate) - [select for diffs]
Modified Fri Dec 21 15:20:20 2001 UTC (7 years, 11 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 13968 byte(s)
Diff to previous 92512 (colored)
  Clean up a compiler emit for signedness

Revision 92512 - (view) (annotate) - [select for diffs]
Modified Tue Dec 18 13:48:54 2001 UTC (7 years, 11 months ago) by trawick
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 13968 byte(s)
Diff to previous 92377 (colored)
Change core code to allow an MPM to set hard thread/server
limits at startup.

Revision 92377 - (view) (annotate) - [select for diffs]
Modified Fri Dec 7 19:08:50 2001 UTC (7 years, 11 months ago) by aaron
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 12085 byte(s)
Diff to previous 92375 (colored)
Provide an accessor function for the global_score portion of the scoreboard.

Submitted by:	Harrie Hazewinkel <harrie@covalent.net>
Reviewed by:	Aaron Bannert

Revision 92375 - (view) (annotate) - [select for diffs]
Modified Fri Dec 7 19:06:29 2001 UTC (7 years, 11 months ago) by aaron
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 11985 byte(s)
Diff to previous 91667 (colored)
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

Revision 91667 - (view) (annotate) - [select for diffs]
Modified Fri Oct 26 15:40:04 2001 UTC (8 years, 1 month ago) by gregames
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 11959 byte(s)
Diff to previous 90814 (colored)
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.

Revision 90814 - (view) (annotate) - [select for diffs]
Modified Thu Aug 30 15:44:13 2001 UTC (8 years, 2 months ago) by trawick
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 11777 byte(s)
Diff to previous 90361 (colored)
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...

Revision 90361 - (view) (annotate) - [select for diffs]
Modified Sun Aug 19 16:01:05 2001 UTC (8 years, 3 months ago) by dougm
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 11769 byte(s)
Diff to previous 90359 (colored)
adjust to apr_uri_ rename

Revision 90359 - (view) (annotate) - [select for diffs]
Modified Sun Aug 19 15:52:59 2001 UTC (8 years, 3 months ago) by dougm
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 11780 byte(s)
Diff to previous 90015 (colored)
adjust to UNP_ -> APR_URI_UNP_ rename

Revision 90015 - (view) (annotate) - [select for diffs]
Modified Tue Aug 7 22:28:51 2001 UTC (8 years, 3 months ago) by gregames
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 11772 byte(s)
Diff to previous 89842 (colored)
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.

Revision 89842 - (view) (annotate) - [select for diffs]
Modified Tue Jul 31 20:46:06 2001 UTC (8 years, 3 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 11776 byte(s)
Diff to previous 89660 (colored)
  Exported symbols for mod_pop

Revision 89660 - (view) (annotate) - [select for diffs]
Modified Mon Jul 23 18:17:16 2001 UTC (8 years, 4 months ago) by gregames
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 11764 byte(s)
Diff to previous 89609 (colored)
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.

Revision 89609 - (view) (annotate) - [select for diffs]
Modified Wed Jul 18 21:13:04 2001 UTC (8 years, 4 months ago) by wrowe
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 11735 byte(s)
Diff to previous 89608 (colored)
  Fix ap_create_scoreboard fooness on Win32.

Revision 89608 - (view) (annotate) - [select for diffs]
Modified Wed Jul 18 20:45:36 2001 UTC (8 years, 4 months ago) by rbb
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 11655 byte(s)
Diff to previous 89604 (colored)
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

Revision 89604 - (view) (annotate) - [select for diffs]
Modified Wed Jul 18 20:29:00 2001 UTC (8 years, 4 months ago) by rederpj
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 11471 byte(s)
Diff to previous 89554 (colored)

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

Revision 89554 - (view) (annotate) - [select for diffs]
Modified Mon Jul 16 02:29:33 2001 UTC (8 years, 4 months ago) by rbb
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 11467 byte(s)
Diff to previous 89542 (colored)
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.

Revision 89542 - (view) (annotate) - [select for diffs]
Modified Thu Jul 12 03:20:50 2001 UTC (8 years, 4 months ago) by gregames
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 11518 byte(s)
Diff to previous 89532 (colored)
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.

Revision 89532 - (view) (annotate) - [select for diffs]
Modified Tue Jul 10 19:00:03 2001 UTC (8 years, 4 months ago) by rbb
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 11551 byte(s)
Diff to previous 89198 (colored)
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>

Revision 89198 - (view) (annotate) - [select for diffs]
Modified Tue May 22 01:31:12 2001 UTC (8 years, 6 months ago) by fielding
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 11110 byte(s)
Diff to previous 89115 (colored)
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

Revision 89115 - (view) (annotate) - [select for diffs]
Modified Tue May 15 02:38:17 2001 UTC (8 years, 6 months ago) by rederpj
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 11109 byte(s)
Diff to previous 89050 (colored)

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]

Revision 89050 - (view) (annotate) - [select for diffs]
Modified Mon May 7 17:55:01 2001 UTC (8 years, 6 months ago) by trawick
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 11102 byte(s)
Diff to previous 89048 (colored)
fix some generation logic/displays in mod_status by setting
the generation field in parent_score

Revision 89048 - (view) (annotate) - [select for diffs]
Modified Mon May 7 16:24:14 2001 UTC (8 years, 6 months ago) by trawick
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 11052 byte(s)
Diff to previous 88484 (colored)
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

Revision 88484 - (view) (annotate) - [select for diffs]
Modified Fri Mar 9 20:30:34 2001 UTC (8 years, 8 months ago) by trawick
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 11016 byte(s)
Diff to previous 88437 (colored)
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

Revision 88437 - (view) (annotate) - [select for diffs]
Modified Fri Mar 2 22:46:33 2001 UTC (8 years, 8 months ago) by rbb
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 11010 byte(s)
Diff to previous 88298 (colored)
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>

Revision 88298 - (view) (annotate) - [select for diffs]
Modified Sat Feb 24 11:23:31 2001 UTC (8 years, 9 months ago) by gstein
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 10973 byte(s)
Diff to previous 88184 (colored)
*) 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]

Revision 88184 - (view) (annotate) - [select for diffs]
Modified Fri Feb 16 04:26:53 2001 UTC (8 years, 9 months ago) by fielding
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 10973 byte(s)
Diff to previous 88151 (colored)
Update copyright to 2001

Revision 88151 - (view) (annotate) - [select for diffs]
Modified Wed Feb 14 02:52:23 2001 UTC (8 years, 9 months ago) by stoddard
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 10968 byte(s)
Diff to previous 88102 (colored)
Start getting extended status working again.

Revision 88102 - (view) (annotate) - [select for diffs]
Modified Mon Feb 12 02:42:10 2001 UTC (8 years, 9 months ago) by gstein
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 10953 byte(s)
Diff to previous 88094 (colored)
*) 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

Revision 88094 - (view) (annotate) - [select for diffs]
Modified Sun Feb 11 20:58:12 2001 UTC (8 years, 9 months ago) by ben
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 10906 byte(s)
Diff to previous 88060 (colored)
Fix a warning.

Revision 88060 - (view) (annotate) - [select for diffs]
Modified Sat Feb 10 13:05:29 2001 UTC (8 years, 9 months ago) by gstein
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 10885 byte(s)
Diff to previous 88045 (colored)
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

Revision 88045 - (view) (annotate) - [select for diffs]
Modified Sat Feb 10 03:03:18 2001 UTC (8 years, 9 months ago) by gstein
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 10844 byte(s)
Diff to previous 88043 (colored)
*) remove obsolete http_conf_globals.h
*) simplify all this #ifdef'ing: just nuke the unixd.h header. it isn't
   actually needed.

Revision 88043 - (view) (annotate) - [select for diffs]
Modified Sat Feb 10 00:52:22 2001 UTC (8 years, 9 months ago) by dreid
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 10983 byte(s)
Diff to previous 88037 (colored)
BeOS doesn't have unixd.h either.

Revision 88037 - (view) (annotate) - [select for diffs]
Modified Fri Feb 9 16:11:50 2001 UTC (8 years, 9 months ago) by stoddard
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 10965 byte(s)
Diff to previous 88019 (colored)
Replace reinit_scoreboard with ap_create_scoreboard.

Revision 88019 - (view) (annotate) - [select for diffs]
Modified Thu Feb 8 07:45:33 2001 UTC (8 years, 9 months ago) by dougm
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 11154 byte(s)
Diff to previous 88013 (colored)
renaming various functions for consistency sake
see: http://apr.apache.org/~dougm/apr_rename.pl
PR:
Obtained from:
Submitted by:
Reviewed by:

Revision 88013 - (view) (annotate) - [select for diffs]
Modified Wed Feb 7 21:41:43 2001 UTC (8 years, 9 months ago) by rbb
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 11129 byte(s)
Diff to previous 88012 (colored)
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.

Revision 88012 - (view) (annotate) - [select for diffs]
Modified Wed Feb 7 20:49:25 2001 UTC (8 years, 9 months ago) by rbb
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 11204 byte(s)
Diff to previous 87994 (colored)
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.

Revision 87994 - (view) (annotate) - [select for diffs]
Modified Tue Feb 6 20:41:07 2001 UTC (8 years, 9 months ago) by rbb
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 11204 byte(s)
Diff to previous 87989 (colored)
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.

Revision 87989 - (view) (annotate) - [select for diffs]
Modified Tue Feb 6 15:16:05 2001 UTC (8 years, 9 months ago) by bjh
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 11171 byte(s)
Diff to previous 87963 (colored)
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.

Revision 87963 - (view) (annotate) - [select for diffs]
Modified Sat Feb 3 00:32:20 2001 UTC (8 years, 9 months ago) by trawick
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 11148 byte(s)
Diff to previous 87960 (colored)
cleanups need to return apr_status_t

Revision 87960 - (view) (annotate) - [select for diffs]
Modified Fri Feb 2 22:31:00 2001 UTC (8 years, 9 months ago) by stoddard
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 11104 byte(s)
Diff to previous 87959 (colored)
Ooops, that S and D are right next to each other.

Revision 87959 - (view) (annotate) - [select for diffs]
Modified Fri Feb 2 21:32:34 2001 UTC (8 years, 9 months ago) by stoddard
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 11104 byte(s)
Diff to previous 87949 (colored)
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.

Revision 87949 - (view) (annotate) - [select for diffs]
Added Thu Feb 1 21:55:16 2001 UTC (8 years, 9 months ago) by rbb
Original Path: httpd/httpd/trunk/server/scoreboard.c
File length: 9218 byte(s)
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.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

apache@apache.org
ViewVC Help
Powered by ViewVC 1.1.2