1
0
mirror of https://github.com/apache/httpd.git synced 2025-11-06 16:49:32 +03:00
Commit Graph

120 Commits

Author SHA1 Message Date
Bradley Nicholes
f963cb1702 Reworked the accept() loop to avoid an extra call to select() just to
determine if there is work to do.  Made the calls to accept() non-blocking.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92737 13f79535-47bb-0310-9956-ffa450edef68
2002-01-04 22:25:09 +00:00
Jeff Trawick
dfaf893a30 for the netware MPM, move HARD_THREAD_LIMIT back to mpm_default.h where
the other user-tunable compile-time parameters are

HARD_SERVER_LIMIT stays in mpm_netware.c since it can't really be changed


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92533 13f79535-47bb-0310-9956-ffa450edef68
2001-12-19 16:23:34 +00:00
Bradley Nicholes
6f67fec86a Reworked the select/accept loop to try to rely less on select to determine
if there is work to do.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92532 13f79535-47bb-0310-9956-ffa450edef68
2001-12-19 16:19:00 +00:00
Jeff Trawick
b7e1aa2df1 fix some references to the wrong constant (HARD_SERVER_LIMIT vs.
HARD_THREAD_LIMIT)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92513 13f79535-47bb-0310-9956-ffa450edef68
2001-12-18 14:18:28 +00:00
Jeff Trawick
187e9ae3b9 Change core code to allow an MPM to set hard thread/server
limits at startup.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92512 13f79535-47bb-0310-9956-ffa450edef68
2001-12-18 13:48:54 +00:00
Bradley Nicholes
cab5223a9e Clean up GNU compiler issues on NetWare
Submitted by: Pavel Novy


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92429 13f79535-47bb-0310-9956-ffa450edef68
2001-12-11 19:36:05 +00:00
Bradley Nicholes
d660c328f7 Changed a variable name to avoid a NetWare LibC global conflict.
Submitted by: Pavel Novy [novy@feld.cvut.cz]


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92035 13f79535-47bb-0310-9956-ffa450edef68
2001-11-19 16:10:36 +00:00
Ryan Bloom
a4f00625aa Pull lingering close out of the pool cleanup phase. This was causing too
many bugs.  Instead, it is called where it used to be called.  I have
abstracted some of the logic out of the lingering close so that it gets
the socket from the connection using the core's conn_config vector.  This
is in anticipation of a change to use a hook for the lingering close,
which I hope to do soon.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91968 13f79535-47bb-0310-9956-ffa450edef68
2001-11-15 20:49:54 +00:00
Ryan Bloom
695081280d Add the server_rec argument back to the create_connection hook.
Submitted by:	Greg Stein


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91913 13f79535-47bb-0310-9956-ffa450edef68
2001-11-13 20:29:54 +00:00
Bradley Nicholes
8b8a8f209a Misc. cleanups and performance enhancements
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91908 13f79535-47bb-0310-9956-ffa450edef68
2001-11-13 18:36:22 +00:00
Ryan Bloom
aefc6b1525 Remove commas from the end of the macros that define
directives that are used by MPMs.  Previous to this patch,
you would use these macros without commans, which was unlike
any other directives. Now, after the macro, you must have
a comma.  This makes the macros look more like the rest of the
directives.

I know this is cosmetic, and I was going to leave it alone, but when
I found out that it bothered Cliff too, I decided to fix it after all.

Submitted by:	Ryan Bloom and Cliff Woolley


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91896 13f79535-47bb-0310-9956-ffa450edef68
2001-11-13 06:04:25 +00:00
Ryan Bloom
26444e2900 Remove more network logic from the MPMs. Essentially, each MPM can define
AP_MPM_DISABLE_NAGLE_ACCEPTED_SOCK, which tells Apache to disable_nagle
on the accepted socket.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91889 13f79535-47bb-0310-9956-ffa450edef68
2001-11-13 01:24:42 +00:00
Ryan Bloom
0c05b625ac Begin to abstract out the underlying transport layer.
The first step is to remove the socket from the conn_rec,
the server now lives in a context that is passed to the
core's input and output filters. This forces us to be very
careful when adding calls that use the socket directly,
because the socket isn't available in most locations.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91887 13f79535-47bb-0310-9956-ffa450edef68
2001-11-12 23:49:08 +00:00
Ryan Bloom
13cf9521f5 Remove ap_lingering_close from all of the MPMs. This is now done as
a cleanup registered with the connection_pool.  I have also turned
ap_lingering_close into a static function, because it is only used
in connection.c.  This is the next step to consolidating all of the
socket function calls.  ap_lingering_close will only be added if the
core is dealing with a standard socket.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91832 13f79535-47bb-0310-9956-ffa450edef68
2001-11-10 18:26:30 +00:00
Cliff Woolley
4421663d68 Fix the spelling of the AP_MPMQ_MIN_SPARE_DAEMONS and
AP_MPMQ_MAX_REQUESTS_DAEMON macros.  Better to do it now rather than later.

**WARNING** This will of course break the compile on any third-party MPMs
you might have floating around, but it's a really quick change to make.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91777 13f79535-47bb-0310-9956-ffa450edef68
2001-11-07 05:29:58 +00:00
Bradley Nicholes
a208bee0ca Added the secondary command line hander for manipulating a running
instance of Apache from the console.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91731 13f79535-47bb-0310-9956-ffa450edef68
2001-11-02 18:07:17 +00:00
Bradley Nicholes
fd5a940c96 NetWare MPM cleanup
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91692 13f79535-47bb-0310-9956-ffa450edef68
2001-10-29 23:01:46 +00:00
Bradley Nicholes
5979914ea5 Updated to the new locking API's
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91655 13f79535-47bb-0310-9956-ffa450edef68
2001-10-23 23:33:46 +00:00
Bradley Nicholes
83192997c9 NetWare doesn't have processes so no need to detach something that
doesn't exist


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91633 13f79535-47bb-0310-9956-ffa450edef68
2001-10-22 15:20:22 +00:00
Bradley Nicholes
4f0494a877 First cut at the MPM for NetWare
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91514 13f79535-47bb-0310-9956-ffa450edef68
2001-10-16 23:27:04 +00:00