httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <>
Subject Re: Q: ap_listeners
Date Sat, 04 Dec 1999 04:35:59 GMT
that's right.

it's actually a non-circular list during configuration, and is made
circular at the end...

it was just more convenient for the accept loop (which has various
starvation conditions otherwise, i forget where i documented that).


On Thu, 2 Dec 1999, Tom Harrington wrote:

> I'm working on porting Apache to yet another platform.  I could use a 
> little clarification on the use of the ap_listerers variable declared
> in http_main.c, in 1.3.9.
> As I understand: ap_listeners is a circular linked list, but by default it
> only contains one element that points to itself.  It appears that there
> will only be additional elements in the list if httpd.conf contains
> one or more "Listen" directives, and in this case ap_listeners will
> gain one element per "Listen".  There are only two places where elements
> are added to ap_listeners: setup_listeners() (http_main.c), which adds the
> default listener, and set_listener() (http_core.c), which adds any
> entries specified by "Listen" directives.
> Am I getting this?  Any holes/wild misundersdandings in the above?
> -- 
> Tom Harrington
> CrosStor Software, Inc.

View raw message