httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Reid" <ab...@dial.pipex.com>
Subject Re: [PATCH] BeOS for Apache 1.3.x
Date Wed, 26 Jan 2000 07:36:21 GMT
Thanks Fred.  The one_process hack is necessary because of the way the OS
treats sockets and sharing them.  The server will run but won't serve when
run normally, but running with the single_process flag set it's fine.  The
work necessary to overcome this problem would be complicated, if it could be
done (or at least so it seems).

Not sure if the patch set the flag in the correct place, but by setting it
it removes the requirement for the user to set the command line flag.

In Apache 2.0 the BeOS MPM manages to get round these problems which is one
of the reasons why I've put most of my energy into getting it to work :-)

Does that help?

david
----- Original Message -----
From: "Wilfredo Sanchez" <wsanchez@apple.com>
To: <new-httpd@apache.org>
Sent: Wednesday, January 26, 2000 4:43 AM
Subject: Re: [PATCH] BeOS for Apache 1.3.x


> | I meant to send this prior to the release but have been kinda
> busy.  Anyway
> | here is the patch to get 1.3.x working "out of the box" on BeOS.
> Basically
> | tidies up a few small niggles, forces the single process mode and
> gets the
> | support programs building.  Can these be applied against the 1.3.x
> tree if
> | they're OK?
>
>   I committed all of your changes except the one_process hack.  I'm
> not clued in on the problem, can you verify at least that you do want
> to set one_process to one after child_timeouts is set based on it's
> prior value, and maybe clue me in on why you need to force this?
> This will obviously make the server not-so-responsive.  I assume this
> is a workaround for some nasty OS bug we can't easily work around?
>
>   Remaining diff is below.
>
> -Fred
>
>
> diff -ru apache_1.3.11/src/main/http_main.c
> apache_1.3.11_beos/src/main/http_main.c
> --- apache_1.3.11/src/main/http_main.c Wed Jan 12 15:54:58 2000
> +++ apache_1.3.11_beos/src/main/http_main.c Mon Jan 24 12:16:01 2000
> @@ -4963,6 +4964,11 @@
>      }
>
>      child_timeouts = !ap_standalone || one_process;
> +
> +#ifdef BEOS
> +    /* make sure we're running in single_process mode - Yuck! */
> +    one_process = 1;
> +#endif
>
>  #ifndef TPF
>      if (ap_standalone) {
>
>
> --
>        Wilfredo Sanchez, wsanchez@apple.com
> Apple Computer, Inc., Core Operating Systems / BSD
>           Open Source Engineering Lead
>    1 Infinite Loop, 302-4K, Cupertino, CA 95014
>


Mime
View raw message