You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rivet-dev@tcl.apache.org by Massimo Manghi <mx...@apache.org> on 2014/08/11 01:27:30 UTC

MPM aware mod_rivet

Hi

I've just committed to trunk/experimental what I did in the weekend in
the effort of outlining a new rivet module based on the refactoring of
existing code and capable of working with both threaded and non threaded
Apache MPMs

The solution I'm exploring is based on the introduction of dynamically
loaded objects responsible for setting up the suitable environment for a
given MPM. mod_rivet hooks eventually call functions in these libraries
for everything has to be MPM dependent. I called these 2 new modules
'bridges'.

The bridge for the prefork MPM seems to work decently, it's largely
based on code taken or inspired by other function of the stable
mod_rivet module. I've tested it and early results are encouraging (no
obvious failures, but I still have to run the test suite on it)

The bridge for worker is able to process requests but it's far from
being complete. I struggled with a few problems I had with certain
mechanism of Tcl when working with threads and also with the way APR
does other things (yes, I got bitten a couple of times handling too
confidently threads and memory cleanup), but  also this code is slowing
shaping up.

I will have to read the Apache server code to understand a few things
about how the framework handles record objects and threads.


 -- Massimo

---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org