httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Danek Duvall <dduv...@eng.sun.com>
Subject Re: [PATCH] option to remove default listener
Date Thu, 17 May 2001 00:56:44 GMT
On Wed, May 16, 2001 at 05:24:32PM -0700, dean gaudet wrote:

> what does a server do when it has no default listener?  i.e. what's the
> point again?

With this patch applied, the server will exit.  The chain is

    ap_listen_open() returns -1, so
    ap_setup_listeners() returns 0, so 
    ap_mpm_run() logs an error and returns 1, so
    the inifinite loop in main() is exited, falling off the end of the
        program

Without this patch, a server is set up on port 80, as if there were one
configured in the config file.  This is behavior I'd like to avoid,
optionally.

> (does the child_main code even work when the listener ring is empty??  i
> swear it'll core dump, but i haven't looked.)

As far as I can tell, child_main() won't have been called yet when this
logic is encountered.  At least at initial startup.  If you've removed
all your listeners from the config of a running server, well, that probably
isn't good, either.

Thanks,
Danek

Mime
View raw message