]> granicus.if.org Git - apache/log
apache
25 years agoWell this was thought provoking.
Ben Hyde [Thu, 7 Oct 1999 20:48:26 +0000 (20:48 +0000)]
Well this was thought provoking.

Drive out the use of malloc in two places.

In listen.c, using the global process pool instead.  That changes the
API into listen so that a process is passed in rather than the config
pool.  That's all was easy.

The pain is propogating a change into all N of the mpm, they
are all similar but different in their use of listen.c  There
is a lot to dislike about similar but code scattered code.

I changed the N setup_listener routines, they now take only
the server since they can dig the config and global pool
out of there.

Free today: ap_setup_prelinked_modules now takes the process so it
can allocate it's table in the process's pool rathern than use
malloc.

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

25 years agoAdd process_rec to the top of {server,connection,request}_rec
Ben Hyde [Thu, 7 Oct 1999 18:13:17 +0000 (18:13 +0000)]
Add process_rec to the top of {server,connection,request}_rec
hierarchy of structs that abstract server activities.  Store some
stuff in process_rec (finally a place to have nearly guiltless
globals) for example the global and configuration pools.  Put some
operations on process_rec in http_main, in particular the
destroy_and_exit operation, and the use it to do all the exit calls.
Change ap_read_config to operation on this "object" rather than on the
configuration pool.  Modify server_rec to point to the process, so you
can get at it most all the time which should finally allow most of the
server's malloc calls to be eliminated.

There are no locks in the process struct as yet, put them in as needed.
Some of the hooks should take this rather than conf. pool.

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

25 years agoDuh.
Ben Hyde [Thu, 7 Oct 1999 15:36:40 +0000 (15:36 +0000)]
Duh.

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

25 years agoChanged my mind, ptemp maybe "systolic" but since it is empty
Ben Hyde [Thu, 7 Oct 1999 15:33:06 +0000 (15:33 +0000)]
Changed my mind, ptemp maybe "systolic" but since it is empty
during the entire time the server is serving it's best to destroy it.

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

25 years agoMan! This file vastly improved. Thanks Dean!
Ben Hyde [Thu, 7 Oct 1999 14:32:06 +0000 (14:32 +0000)]
Man!  This file vastly improved.  Thanks Dean!

Use the abstraction API_EXPORT_NONSTD for exporting main (aka
apache_main).  Use clear rather than destroy on ptemp as other
'systolic' pools do.  That also fixing a leak of the first ptemp
created.  Let the destroy of pglobal to all the cleanup.  Meanwhile,
all exit paths should destroy pglobal so the cleanup/unwind gets run
and this routine sets a bad example by having many exits that don't -
another day.
PR:
Obtained from:
Submitted by:
Reviewed by:

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

25 years agoBring file_io up to the new parameter order for APR. I have decided to do
Ryan Bloom [Wed, 6 Oct 1999 23:04:16 +0000 (23:04 +0000)]
Bring file_io up to the new parameter order for APR.  I have decided to do
these on a directory by directory basis for the rest of APR.  I hope to
cause fewer problems for other developers by doing it this way.

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

25 years agoRemove obsolete ap_util_init function.
Ben Hyde [Wed, 6 Oct 1999 21:26:53 +0000 (21:26 +0000)]
Remove obsolete ap_util_init function.

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

25 years agoUse new parameter orders.
Ben Laurie [Tue, 5 Oct 1999 11:57:41 +0000 (11:57 +0000)]
Use new parameter orders.

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

25 years agoFix bug with listenmaxfd. Get rid of a few signed/unsigned warnings in the same area.
Bill Stoddard [Tue, 5 Oct 1999 07:01:24 +0000 (07:01 +0000)]
Fix bug with listenmaxfd. Get rid of a few signed/unsigned warnings in the same area.

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

25 years agoAdd a couple of missing function declarations
Bill Stoddard [Tue, 5 Oct 1999 06:01:32 +0000 (06:01 +0000)]
Add a couple of missing function declarations

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

25 years agoConvert CriticalSection and mutex into apr_lock_t and delete the old lock code.
Bill Stoddard [Tue, 5 Oct 1999 05:47:33 +0000 (05:47 +0000)]
Convert CriticalSection and mutex into apr_lock_t and delete the old lock code.

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

25 years agoUpdate ap_send_fd() and ap_send_fd_length() to use an ap_file_t. Hummm...
Bill Stoddard [Tue, 5 Oct 1999 05:14:43 +0000 (05:14 +0000)]
Update ap_send_fd() and ap_send_fd_length() to use an ap_file_t. Hummm...
Still need to get sendfile() in. First, lets get the serving basically
working again :-)

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

25 years agoTemporary hacks to the Win32 project files to get the server working
Bill Stoddard [Tue, 5 Oct 1999 04:51:10 +0000 (04:51 +0000)]
Temporary hacks to the Win32 project files to get the server working

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

25 years agoSimple name change. the function ap_gets has been renamed to ap_fgets.
Ryan Bloom [Mon, 4 Oct 1999 17:24:52 +0000 (17:24 +0000)]
Simple name change.  the function ap_gets has been renamed to ap_fgets.
This is more in-line with what the function does, and how it acts, so
it makes sense.

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

25 years agoFirst patch to re-order function parameters. This one gets the low hanging
Ryan Bloom [Mon, 4 Oct 1999 16:38:16 +0000 (16:38 +0000)]
First patch to re-order function parameters.  This one gets the low hanging
fruit, and moves most of the result parameters to the first argument.
Future patches in this series will move the rest of the result parameters
to the beginning of the list, and will move the context's to the end of the
list

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

25 years agoExit the child process if too many select errors
Bill Stoddard [Fri, 1 Oct 1999 17:18:28 +0000 (17:18 +0000)]
Exit the child process if too many select errors

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

25 years agoStop CVS from complaing about a manually created src/lib/pth/ subdir
Ralf S. Engelschall [Mon, 27 Sep 1999 07:29:08 +0000 (07:29 +0000)]
Stop CVS from complaing about a manually created src/lib/pth/ subdir
if one build with GNU Pth through the pre-configured setup in config.options.

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

25 years agoMake the support stuff finitely working again.
Ralf S. Engelschall [Mon, 27 Sep 1999 07:19:55 +0000 (07:19 +0000)]
Make the support stuff finitely working again.

BTW, how can it be that nowadays it can happen that the Apache Group has a
source tree which doesn't compile under Unix for more than two weeks (I was
busy with exams and it didn't compile src/support/ already there)? In the past
this was definitely not possible.  Seems like the source-centered hacker focus
drifts away... sorry, for me this seems like a horrifying evolution, friends.
Please let us always make sure that the source at least compiles. I don't want
to say it should also run, but hell, it should at least compile and if not it
should be fixed within a few days...

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

25 years agoRestarts were hosed after the APR changes because we were opening
Manoj Kasichainula [Fri, 24 Sep 1999 22:01:21 +0000 (22:01 +0000)]
Restarts were hosed after the APR changes because we were opening
sockets even when we had them open already. So, for now, add an "active"
flag that indicates whether the socket stored in the listen_rec is an
actual open socket yet.

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

25 years agoFix some broken logic. This logic now replicates what is in Apache 1.3.
Bill Stoddard [Fri, 24 Sep 1999 21:21:20 +0000 (21:21 +0000)]
Fix some broken logic. This logic now replicates what is in Apache 1.3.

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

25 years agoWhen generating the Location: header, mod_speling forgot
Martin Kraemer [Thu, 23 Sep 1999 19:29:13 +0000 (19:29 +0000)]
When generating the Location: header, mod_speling forgot
to escape the spelling-fixed uri. (Forward-Port from 1.3)

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

25 years agoMove ap_pregcomp and ap_pregfree from APR to Apache proper, since these
Manoj Kasichainula [Mon, 20 Sep 1999 22:18:51 +0000 (22:18 +0000)]
Move ap_pregcomp and ap_pregfree from APR to Apache proper, since these
functions depend on Apache's regex libraries. This also should fix
compilation on platforms not using hsregex.

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

25 years agoMake ap_getipaddr threadsafe.
Ben Laurie [Sat, 18 Sep 1999 11:48:17 +0000 (11:48 +0000)]
Make ap_getipaddr threadsafe.

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

25 years agoInstead of blocking all signals in child_main, we were unblocking them;
Manoj Kasichainula [Fri, 17 Sep 1999 23:32:11 +0000 (23:32 +0000)]
Instead of blocking all signals in child_main, we were unblocking them;
this fixes that. Reported by Dave Colasurdo <davecola@us.ibm.com>.

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

25 years agoUpdate FAQ with winsock 2 info..
Bill Stoddard [Fri, 17 Sep 1999 17:31:37 +0000 (17:31 +0000)]
Update FAQ with winsock 2 info..

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

25 years agoA change to how APR uses user data. Now, user data is a linked list that
Ryan Bloom [Tue, 14 Sep 1999 13:37:45 +0000 (13:37 +0000)]
A change to how APR uses user data.  Now, user data is a linked list that
is retreivable using a char string.  Basically, you provide a string that
will be used as a key when you store the data.  If the key was used before,
we will overwrite the old data.  When you want to retreive your data, pass
in the same key, and we will find the data you care about.  This also makes
it harder to put user data in when creating a context, so that option has
disappeared.  It is also impossible to inherit user data from parent contexts.
This option may be added in later.  I will be documenting this VERY soon.

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

25 years agoCut out cruft... More APR'izing...
Bill Stoddard [Mon, 13 Sep 1999 18:30:32 +0000 (18:30 +0000)]
Cut out cruft... More APR'izing...

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

25 years agoAdd apr include file search path. Remove alloc.c and alloc.h
Bill Stoddard [Mon, 13 Sep 1999 17:03:29 +0000 (17:03 +0000)]
Add apr include file search path. Remove alloc.c and alloc.h

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

25 years agoAdd apr include path to win32 dsp and make file
Bill Stoddard [Mon, 13 Sep 1999 15:20:53 +0000 (15:20 +0000)]
Add apr include path to win32 dsp and make file

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

25 years agoA bit of WIN32 header file cleanup
Bill Stoddard [Mon, 13 Sep 1999 14:07:22 +0000 (14:07 +0000)]
A bit of WIN32 header file cleanup

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

25 years agoFix warnings.
Ben Laurie [Sat, 11 Sep 1999 22:14:37 +0000 (22:14 +0000)]
Fix warnings.

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

25 years agoUse return status instead of character value for EOF.
Ben Laurie [Sat, 11 Sep 1999 22:14:11 +0000 (22:14 +0000)]
Use return status instead of character value for EOF.

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

25 years agoReally get rid of unused options.
Ben Laurie [Sat, 11 Sep 1999 19:52:27 +0000 (19:52 +0000)]
Really get rid of unused options.

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

25 years agoThis change should allow Apache to build on all platforms with the popenf
Ryan Bloom [Sat, 11 Sep 1999 15:58:37 +0000 (15:58 +0000)]
This change should allow Apache to build on all platforms with the popenf
changes.  I have not been able to test this, but it should be evident what I
am doing if it doesn't work.

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

25 years agoMake prefork compile on FreeBSD.
Ben Laurie [Sat, 11 Sep 1999 10:25:59 +0000 (10:25 +0000)]
Make prefork compile on FreeBSD.

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

25 years agoUpdate dexter to work with the latest APR changes
Manoj Kasichainula [Wed, 8 Sep 1999 18:58:46 +0000 (18:58 +0000)]
Update dexter to work with the latest APR changes

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

25 years agoRemove all of the calls to functions like "ap_popenf". These functions were
Ryan Bloom [Wed, 8 Sep 1999 14:15:55 +0000 (14:15 +0000)]
Remove all of the calls to functions like "ap_popenf".  These functions were
moved down to APR, but they are being removed.  They are not portable, and
were only moved down for backwards compatability.  With this change, they can
be safely removed, which is the next commit on it's way.
Submitted by:  Ryan Bloom and Paul Reder

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

25 years agobeos updates from David Reid <beos@server1.jetnet.co.uk>
dgaudet [Tue, 7 Sep 1999 22:31:02 +0000 (22:31 +0000)]
beos updates from David Reid <beos@server1.jetnet.co.uk>

Submitted by: David Reid <beos@server1.jetnet.co.uk>

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

25 years agoThe closesocket define causes problems on BeOS. Get rid of it where
Manoj Kasichainula [Mon, 6 Sep 1999 03:23:39 +0000 (03:23 +0000)]
The closesocket define causes problems on BeOS. Get rid of it where
appropriate.

Submitted by: In part by David Reid <abb37@dial.pipex.com>

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

25 years agoFix hyperlink
Ralf S. Engelschall [Sat, 4 Sep 1999 14:19:25 +0000 (14:19 +0000)]
Fix hyperlink

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

25 years agoMoved mod_auth_digest.c from experimental to standard.
Roy T. Fielding [Wed, 1 Sep 1999 22:48:13 +0000 (22:48 +0000)]
Moved mod_auth_digest.c from experimental to standard.

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

25 years agoMore TPF-related changes. Among them:
Manoj Kasichainula [Wed, 1 Sep 1999 04:28:52 +0000 (04:28 +0000)]
More TPF-related changes. Among them:
  - Code reorganization to eliminate some TPF #ifdefs
  - Tweaks to the regex code for easier testing
  - Documentation and build updates
  - Notes in the CHANGES file
Submitted by: David McCreedy <McCreedy@us.ibm.com> and others at IBM

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

25 years agoFix all of those annoying --i -> - ap_context_t problems caused by a
Ryan Bloom [Tue, 31 Aug 1999 21:54:52 +0000 (21:54 +0000)]
Fix all of those annoying --i -> - ap_context_t problems caused by a
search/replace gone wrong.

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

25 years ago"Our computers are down. We'll call you back tomorrow morning." Grumble.
Manoj Kasichainula [Tue, 31 Aug 1999 21:46:35 +0000 (21:46 +0000)]
"Our computers are down. We'll call you back tomorrow morning." Grumble.

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

25 years agoFix dexter to work after Ryan's context patches.
Manoj Kasichainula [Tue, 31 Aug 1999 21:34:05 +0000 (21:34 +0000)]
Fix dexter to work after Ryan's context patches.

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

25 years agoFix faulty comparison. MSVC TRUE == 1 while Borland TRUE == -1
Bill Stoddard [Tue, 31 Aug 1999 15:26:45 +0000 (15:26 +0000)]
Fix faulty comparison. MSVC TRUE == 1 while Borland TRUE == -1
PR: 4333, 4887
Submitted by: Sergey Verlan

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

25 years agoFix some errors from a global search and replace gone wrong. This should
Ryan Bloom [Tue, 31 Aug 1999 12:33:08 +0000 (12:33 +0000)]
Fix some errors from a global search and replace gone wrong.  This should
let the new context changes work on all platforms.

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

25 years agoChanged pools to contexts. Tested with prefork and pthread mpm's. I'll
Ryan Bloom [Tue, 31 Aug 1999 05:35:52 +0000 (05:35 +0000)]
Changed pools to contexts.  Tested with prefork and pthread mpm's.  I'll
check this out tomorrow and make sure everything was checked in correctly.

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

25 years agoForgot this hook...
Bill Stoddard [Mon, 30 Aug 1999 20:39:33 +0000 (20:39 +0000)]
Forgot this hook...

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

25 years agoLink in the winnt mpm
Bill Stoddard [Mon, 30 Aug 1999 20:37:16 +0000 (20:37 +0000)]
Link in the winnt mpm

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

25 years agoPort a few more modules to use the new hooks style.
Bill Stoddard [Mon, 30 Aug 1999 15:43:48 +0000 (15:43 +0000)]
Port a few more modules to use the new hooks style.

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

25 years agoAdd couple of hooks to the APacheCore.def file. Port mod_auth_anon and mod_digest to
Bill Stoddard [Mon, 30 Aug 1999 15:21:32 +0000 (15:21 +0000)]
Add couple of hooks to the APacheCore.def file. Port mod_auth_anon and mod_digest to
use the new hooks.

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

25 years agoLost the Apache feather icon along the way. Adding it back in...
Bill Stoddard [Mon, 30 Aug 1999 15:04:27 +0000 (15:04 +0000)]
Lost the Apache feather icon along the way. Adding it back in...

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

25 years agoUpdate OS/2 MPM for latest hooks.
Brian Havard [Mon, 30 Aug 1999 14:47:21 +0000 (14:47 +0000)]
Update OS/2 MPM for latest hooks.

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

25 years agoRemove some shadowing
Jim Jagielski [Sat, 28 Aug 1999 13:31:36 +0000 (13:31 +0000)]
Remove some shadowing
warnings. Avoid some possible confusion as well :)

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

25 years agoget rid of two additional warnings
Ralf S. Engelschall [Sat, 28 Aug 1999 13:00:55 +0000 (13:00 +0000)]
get rid of two additional warnings

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

25 years agoclean_child_exit() is really used globally inside dexter MPM,
Ralf S. Engelschall [Sat, 28 Aug 1999 12:37:58 +0000 (12:37 +0000)]
clean_child_exit() is really used globally inside dexter MPM,
so rename it to ap_clean_child_exit().

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

25 years agoFix the following bunch of warnings in dexter MPM:
Ralf S. Engelschall [Sat, 28 Aug 1999 12:32:11 +0000 (12:32 +0000)]
Fix the following bunch of warnings in dexter MPM:

egcc -c  -I../../../os/unix -I../../../include -I../../../modules/mpm/dexter
-pipe -O2 -pedantic -Wall -Wshadow -Wpointer-arith -Wcast-align
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline
-Wno-long-long -funsigned-char -DTARGET=\"apache\" -DUSE_EXPAT
-I../../../lib/expat-lite `../../../apaci` dexter.c
dexter.c:188: warning: no previous prototype for `clean_child_exit'
dexter.c:491: warning: no previous prototype for `ap_start_shutdown'
dexter.c:504: warning: no previous prototype for `ap_start_restart'
dexter.c:682: warning: declaration of `pconf' shadows global declaration
dexter.c: In function `setup_listeners':
dexter.c:683: warning: declaration of `pconf' shadows global declaration
dexter.c: In function `process_socket':
dexter.c:744: warning: pointer targets in passing arg 3 of `getsockname'
differ in signedness
dexter.c: In function `worker_thread':
dexter.c:932: warning: pointer targets in passing arg 3 of `accept' differ in
signedness
dexter.c: In function `ap_mpm_run':
dexter.c:1365: warning: declaration of `i' shadows previous local
dexter.c: At top level:
dexter.c:1404: warning: declaration of `pconf' shadows global declaration
dexter.c: In function `dexter_pre_config':
dexter.c:1405: warning: declaration of `pconf' shadows global declaration

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

25 years agoMake ``configure --with-option=devel'' under
Ralf S. Engelschall [Sat, 28 Aug 1999 12:22:10 +0000 (12:22 +0000)]
Make ``configure --with-option=devel'' under
GCC 2.95.1 happy by avoiding various warnings...

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

25 years agoEnough for one week.
Roy T. Fielding [Sat, 28 Aug 1999 03:25:04 +0000 (03:25 +0000)]
Enough for one week.

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

25 years agono shortage of things TODO
Roy T. Fielding [Sat, 28 Aug 1999 02:44:09 +0000 (02:44 +0000)]
no shortage of things TODO

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

25 years agoRemove error message that was missed in an earlier merge with 1.3.x.
Roy T. Fielding [Sat, 28 Aug 1999 02:37:59 +0000 (02:37 +0000)]
Remove error message that was missed in an earlier merge with 1.3.x.

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

25 years agoFix merge bug
Bill Stoddard [Sat, 28 Aug 1999 02:34:37 +0000 (02:34 +0000)]
Fix merge bug

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

25 years agoMove "handler not found" warning message to below the check
Roy T. Fielding [Fri, 27 Aug 1999 23:47:09 +0000 (23:47 +0000)]
Move "handler not found" warning message to below the check
for a wildcard handler.  Gee, you'd think someone would have
fixed it before seven PRs.

PR: 2584, 3349, 3436, 3548, 4384, 4795, 4807
Submitted by: Dirk <dirkm@teleport.com>, Roy Fielding

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

25 years agoA bunch of changes to get the server compiling on WIN32. mod_cgi, mod_include,
Bill Stoddard [Fri, 27 Aug 1999 22:57:27 +0000 (22:57 +0000)]
A bunch of changes to get the server compiling on WIN32. mod_cgi, mod_include,
mod_isapi and mod_so don't work so I am not making them. Moved a lot of code out
of multithread.*  and into os.* (didn't want to add multithread to the new repository).
Much of this can be cleaned up when APR is stable.

And Dean's gonna but me for sure for the http_main hit. It's may be
possible to name a DLL entry point 'main()'. Just havent tried it yet.

Enjoy!

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

25 years agoReverse the unnecessary change to the interface of ap_parseHTTPdate()
Roy T. Fielding [Fri, 27 Aug 1999 22:18:49 +0000 (22:18 +0000)]
Reverse the unnecessary change to the interface of ap_parseHTTPdate()
that was discovered while rebuilding the repository.

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

25 years agoSome cleanups. Among other things:
Manoj Kasichainula [Fri, 27 Aug 1999 22:16:18 +0000 (22:16 +0000)]
Some cleanups. Among other things:
  - The scoreboard is gond, so we don't call it that anymore
  - We were accessing the child table through a weird combination of
    wrappers and direct access; just switch to direct access and get rid
    of scoreboard.[ch]

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

25 years agoReverse the errors from bad merges that were found while
Roy T. Fielding [Fri, 27 Aug 1999 22:03:06 +0000 (22:03 +0000)]
Reverse the errors from bad merges that were found while
rebuilding the repository.

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

25 years agoBe consistent with how we indicate child death and use status =
Manoj Kasichainula [Fri, 27 Aug 1999 21:28:16 +0000 (21:28 +0000)]
Be consistent with how we indicate child death and use status =
SERVER_DEAD instead of pid = 0. I don't think this actually caused any
bugs, but just in case...

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

25 years agoFix a bug in setting max_daemons_limit that could lead to not noticing
Manoj Kasichainula [Fri, 27 Aug 1999 21:22:28 +0000 (21:22 +0000)]
Fix a bug in setting max_daemons_limit that could lead to not noticing
that a child has died in some cases.

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

25 years agoWIN32: htdigest and htpasswd project and make files for Win32 were deleted
Bill Stoddard [Fri, 27 Aug 1999 20:43:41 +0000 (20:43 +0000)]
WIN32: htdigest and htpasswd project and make files for Win32 were deleted
somewhere along the way. Adding them back...

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

25 years agoYay! A whole new repository for silly comments about weather, pop
Manoj Kasichainula [Fri, 27 Aug 1999 19:02:51 +0000 (19:02 +0000)]
Yay! A whole new repository for silly comments about weather, pop
culture, and spoons.

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

25 years agoFirst crack at a status file for Apache 2.0. Please fix mistakes and
Manoj Kasichainula [Fri, 27 Aug 1999 18:57:17 +0000 (18:57 +0000)]
First crack at a status file for Apache 2.0. Please fix mistakes and
add/rearrange your pet projects

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

25 years agoNow that this beast was officially declared as the Apache 2.0 stuff, let it
Ralf S. Engelschall [Fri, 27 Aug 1999 10:20:37 +0000 (10:20 +0000)]
Now that this beast was officially declared as the Apache 2.0 stuff, let it
also say this in his Server headers while testing.  Those who dislike numbers:
feel free to name it "foo" or whatever meaningless if it's important that we
still do not use numbers. I just want that the version corresponds to the
repository area, because I often get confused by running different Apache
versions on my development box.

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

25 years agoGet rid of the stupid Id line that makes merges impossible.
Roy T. Fielding [Thu, 26 Aug 1999 18:29:09 +0000 (18:29 +0000)]
Get rid of the stupid Id line that makes merges impossible.

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

25 years agoUpdate all exports for pthreads and MPM
Roy T. Fielding [Thu, 26 Aug 1999 18:27:57 +0000 (18:27 +0000)]
Update all exports for pthreads and MPM

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

25 years agoAdd define for ap_spawnvp. Dean removed obsolete symbols NO_OTHER_CHILD
Roy T. Fielding [Thu, 26 Aug 1999 18:11:33 +0000 (18:11 +0000)]
Add define for ap_spawnvp.  Dean removed obsolete symbols NO_OTHER_CHILD
and NO_RELIABLE_PIPED_LOGS.

Submitted by: Ryan Bloom, Manoj Kasichainula

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

25 years agoAdd ap_spawnvp for thread safety.
Roy T. Fielding [Thu, 26 Aug 1999 18:06:13 +0000 (18:06 +0000)]
Add ap_spawnvp for thread safety.

Submitted by: Ryan Bloom, Manoj Kasichainula

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

25 years agoUpdate (or is this reversing ???) the JCL examples for TPF.
Roy T. Fielding [Thu, 26 Aug 1999 18:02:06 +0000 (18:02 +0000)]
Update (or is this reversing ???) the JCL examples for TPF.

Submitted by: MPM leftovers

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

25 years agoOS/2 EMX library's select() isn't thread safe so bypass it and go direct to
Roy T. Fielding [Thu, 26 Aug 1999 17:58:01 +0000 (17:58 +0000)]
OS/2 EMX library's select() isn't thread safe so bypass it and go direct to
the OS/2 API call. Unfortunately this only works on socket handles which will
break probe_writable_fds() so I'll have to find a way to fix that too.

Submitted by: Brian Havard

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

25 years agoChanges for thread safety in pthreads.
Roy T. Fielding [Thu, 26 Aug 1999 17:38:57 +0000 (17:38 +0000)]
Changes for thread safety in pthreads.

Submitted by: Ryan Bloom

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

25 years agoChanges to mod_status so that the two new states for threads are recognized
Roy T. Fielding [Thu, 26 Aug 1999 17:34:28 +0000 (17:34 +0000)]
Changes to mod_status so that the two new states for threads are recognized
and reported properly.

Submitted by: Ryan Bloom

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

25 years agoReplace comment about SIGUSR1 with SIGWINCH.
Roy T. Fielding [Thu, 26 Aug 1999 17:32:02 +0000 (17:32 +0000)]
Replace comment about SIGUSR1 with SIGWINCH.

Submitted by: Manoj Kasichainula

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

25 years agoRemove ap_excess_requests_per_child reference that broke compilation,
Roy T. Fielding [Thu, 26 Aug 1999 17:30:18 +0000 (17:30 +0000)]
Remove ap_excess_requests_per_child reference that broke compilation,
for now anyway.  Likewise for run mode, which is now obsolete.

Submitted by: Manoj Kasichainula

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

25 years agoTODO: changing directory should be handled by CreateProcess
Roy T. Fielding [Thu, 26 Aug 1999 17:26:45 +0000 (17:26 +0000)]
TODO: changing directory should be handled by CreateProcess

Submitted by: Dean Gaudet

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

25 years agoRemove support for ap_suexec_enabled
Roy T. Fielding [Thu, 26 Aug 1999 17:25:09 +0000 (17:25 +0000)]
Remove support for ap_suexec_enabled

Submitted by: Dean Gaudet

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

25 years agoModifications to make mod_unique_id thread safe. This should work on Windows,
Roy T. Fielding [Thu, 26 Aug 1999 17:22:35 +0000 (17:22 +0000)]
Modifications to make mod_unique_id thread safe.  This should work on Windows,
but no guarantees.  I haven't verified it will always give a unique ID, but
the logic is good.  I'll write some test cases to see if I can make it fail
later.

Submitted by: Ryan Bloom

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

25 years agoRemove timeouts as part of pthreads changes.
Roy T. Fielding [Thu, 26 Aug 1999 17:17:22 +0000 (17:17 +0000)]
Remove timeouts as part of pthreads changes.

Submitted by: Bill Stoddard

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

25 years agoExtra bit left off of hook additions.
Roy T. Fielding [Thu, 26 Aug 1999 17:11:08 +0000 (17:11 +0000)]
Extra bit left off of hook additions.

Submitted by: Ben Laurie

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

25 years agoStart to implement module-defined hooks that are a) fast and b) typesafe.
Roy T. Fielding [Thu, 26 Aug 1999 17:09:12 +0000 (17:09 +0000)]
Start to implement module-defined hooks that are a) fast and b) typesafe.
Replace pre_connection module call with a register_hook call and
implement pre_connection as a hook. The intent is that these hooks will
be extended to allow Apache to be multi-protocol, and also to allow the
calling order to be specified on a per-hook/per-module basis.  [Ben Laurie]

Port a bunch of modules to the new module structure.
["Michael H. Voase" <mvoase@midcoast.com.au>]

Submitted by:   Ben Laurie

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

25 years agoAdd prototype for ap_select on OS/2
Roy T. Fielding [Thu, 26 Aug 1999 16:54:14 +0000 (16:54 +0000)]
Add prototype for ap_select on OS/2

Submitted by: Brian Havard

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

25 years agoMore MPM changes. Remove NO_OTHER_CHILD defines.
Roy T. Fielding [Thu, 26 Aug 1999 16:52:53 +0000 (16:52 +0000)]
More MPM changes.  Remove NO_OTHER_CHILD defines.

Submitted by: Dean Gaudet

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

25 years agoSpecial Support for User-Space Threading Environments
Roy T. Fielding [Thu, 26 Aug 1999 16:49:14 +0000 (16:49 +0000)]
Special Support for User-Space Threading Environments

Submitted by: Ralf S. Engelschall

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

25 years agoMore MPM changes. Remove ap_can_exec and add a couple prototypes.
Roy T. Fielding [Thu, 26 Aug 1999 16:43:56 +0000 (16:43 +0000)]
More MPM changes. Remove ap_can_exec and add a couple prototypes.

Submitted by: Dean Gaudet

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

25 years agoOptimize ap_make_dirstr_prefix().
Roy T. Fielding [Thu, 26 Aug 1999 16:37:41 +0000 (16:37 +0000)]
Optimize ap_make_dirstr_prefix().

Submitted by: Manoj Kasichainula

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

25 years agoReplace file descriptors with APRFile.
Roy T. Fielding [Thu, 26 Aug 1999 16:34:15 +0000 (16:34 +0000)]
Replace file descriptors with APRFile.

Submitted by: Bill Stoddard

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

25 years agoOdd comments and leftover bits from the pthreads version.
Roy T. Fielding [Thu, 26 Aug 1999 16:30:39 +0000 (16:30 +0000)]
Odd comments and leftover bits from the pthreads version.
The comments really should be deleted, or at least cleaned up.

Submitted by: pthreads leftovers

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

25 years agoAdd an erroe message when handler not found. This may be bogus,
Roy T. Fielding [Thu, 26 Aug 1999 16:08:08 +0000 (16:08 +0000)]
Add an erroe message when handler not found.  This may be bogus,
since a change similar to this in 1.3.x generated many PR complaints.

Submitted by: pthreads leftovers

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

25 years agoReplace SIGUSR1 with SIGWINCH
Roy T. Fielding [Thu, 26 Aug 1999 16:04:13 +0000 (16:04 +0000)]
Replace SIGUSR1 with SIGWINCH

Submitted by: Manoj Kasichainula

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

25 years agoTODO: re-implement SAFEREAD external to BUFF using a layer
Roy T. Fielding [Thu, 26 Aug 1999 16:02:06 +0000 (16:02 +0000)]
TODO: re-implement SAFEREAD external to BUFF using a layer

Submitted by: Dean Gaudet

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