- From: Robert S. Thau <rst@ai.mit.edu>
- Date: Tue, 29 Jun 1999 21:29:18 -0400 (EDT)
- To: Ben Laurie <ben@algroup.co.uk>
- Cc: John Stracke <francis@ecal.com>, "Http-Wg@Hplb. Hpl. Hp. Com" <http-wg@hplb.hpl.hp.com>
Ben Laurie writes:
> It is possible, but not particularly efficient or portable. ISTR one of
> the very first things Apache did was to get rid of that nonsense.
More precisely, Apache chose not to adopt it. NCSA 1.4 used an
fd-passing scheme in order to handle accepts on its persistent child
processes; the parent server accepted connections, and then fd-passed
them to the children. When we were trying to figure out what to do
about producing a non-fork-per-request version of Apache, Rob Hartill
did some experiments which pretty quickly showed that a simpler
approach could yield results at least as good.
If you really need fd-passing behavior, there's sample code in one of
Stevens' books ("Advanced Programming in the Unix Environment"), but
it's messy; IIRC, there are multiple variants to deal with the
variety of interfaces in different Unix variants.
rst
Received on Tuesday, 29 June 1999 18:34:38 UTC