Hi,

They released 2.2 of Apache.

Changes in 2.2:
http://www.apache.org/dist/httpd/CHANGES_2.2

This is a patch config.m4 of Apache 2.2, have to start somewhere.

Well, before starting on 2.2 I checked, there are no differences between 2.0.52 
and 2.0.55 in prefork.c and peruser compiles with 2.0.55.

How to start on 2.2 and how to apply my patch.

tar jzvf httpd-2.2.0.tar.bz2
cd httpd-2.2.0
patch -p1 < ../patches/httpd-2.0.52-peruser-0.1.6.patch
# which fails with some chunks on config.m4
# fix for chunks
patch -p1 < ../patches/httpd-2.2.0-config.m4-peruser-1
./buildconf
./configure --with-mpm=peruser
make

And yes, it doesn't compile.

server/mpm/experimental/peruser/.libs/libperuser.a(peruser.o)(.text+0x318): In 
function `check_pipe_of_death':
/home/leen/apache/peruser/httpd-2.2.0/server/mpm/experimental/peruser/peruser.c:681:
 undefined reference to `apr_recv'
server/mpm/experimental/peruser/.libs/libperuser.a(peruser.o)(.text+0x2f57): In 
function `ap_mpm_run':
/home/leen/apache/peruser/httpd-2.2.0/server/mpm/experimental/peruser/peruser.c:2055:
 undefined reference to `apr_proc_other_child_read'
collect2: ld returned 1 exit status
make[1]: *** [httpd] Error 1

Time to start looking at what they changed by looking at prefork or something.

Probably what will mean the biggest change from peruser perspective:

  *) prefork, worker and event MPMs: Support a graceful-stop procedure:
     Server will wait until existing requests are finished or until  
     "GracefulShutdownTimeout" number of seconds before exiting. 
     [Colm MacCarthaigh, Ken Coar, Bill Stoddard]

Because of the release there was/is even a small discussion on Slashdot about 
the perchild MPM:
http://apache.slashdot.org/comments.pl?sid=169930&threshold=1&commentsort=0&tid=162&mode=thread&cid=14164245

No1 noticed that it was actually removed from this release.

_____________________________________
New things are always on the horizon.
--- httpd-2.2.0/server/mpm/config.m4.orig       2005-10-30 18:05:26.000000000 
+0100
+++ httpd-2.2.0/server/mpm/config.m4    2005-12-17 10:14:36.000000000 +0100
@@ -1,7 +1,7 @@
 AC_MSG_CHECKING(which MPM to use)
 AC_ARG_WITH(mpm,
 APACHE_HELP_STRING(--with-mpm=MPM,Choose the process model for Apache to use.
-                          MPM={beos|event|worker|prefork|mpmt_os2}),[
+                          MPM={beos|event|worker|prefork|mpmt_os2|peruser}),[
   APACHE_MPM=$withval
 ],[
   if test "x$APACHE_MPM" = "x"; then
@@ -23,7 +23,7 @@
 
 ap_mpm_is_experimental ()
 {
-    if test "$apache_cv_mpm" = "event" ; then
+    if test "$apache_cv_mpm" = "event" -o "$apache_cv_mpm" = "peruser" ; then
         return 0
     else
         return 1
_______________________________________________
Peruser mailing list
[email protected]
http://www.telana.com/mailman/listinfo/peruser

Reply via email to