You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Brian Behlendorf <br...@organic.com> on 1996/02/19 07:32:56 UTC

letting modules specify startup code

We're working on a custom module to do user authentication based on records
in an Oracle database.  Since the database is on a separate machine, the
model is "open connection, perform query, close connection"  - but obviously
that is a painful thing to do if you're trying to design a fast system with
low latency.  What I'd like to be able to do is have "open connection" 
happen at the beginning of a child's life, have the fd for the connection
always available, and then do the "close connection" at the end of the
child's life.  It doesn't *appear* that the Apache API allows for modules to
specify some chunk of code to be performed at startup, so before we go off
hacking this into http_main.c or wherever, does anyone have some good ideas
about generalizing this?  Is this a whack model?

	Brian

--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
brian@organic.com  brian@hyperreal.com  http://www.[hyperreal,organic].com/