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: [email protected] For additional commands, e-mail: [email protected]
