I've had this for a while but never got around to posting it.
http://daedalus.apache.org/~trawick/st.tar
This is [currently] single process only.
This [currently] has a single accept thread per process.
The accept thread queues work elements to worker threads, which then
call a function pointer in the work element.
Currently it is hard-coded to use
pthread_cond_wait()/pthread_cond_signal(). The desire is to have that
mechanism be chosen based upon the platform.
Graceful restart is not as nice as current MPMs where the worker
thread calls accept()... when a non-worker thread calls accept() you
can be left with extra connections needing to be processed at the time
of a graceful restart request... thus, it takes longer to stop serving
requests with the old configuration.
--
Jeff Trawick | [EMAIL PROTECTED] | PGP public key at web site:
http://www.geocities.com/SiliconValley/Park/9289/
Born in Roswell... married an alien...