httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Bray <Tim.B...@Sun.COM>
Subject Re: Sharing an object between successive requests.
Date Tue, 05 Jun 2007 13:01:29 GMT
On Jun 4, 2007, at 3:13 PM, Dumindu Pallewela wrote:

> In a module that I am writing, I need to share an object between
> successive requests. My first go at it was to have a reference to this
> object in the server configuration. But only after trying it out I  
> found
> that the server configuration is not shared between the child  
> processes,
> rather each process has it's own server configuration. (I want the
> module to work despite the MPM used.)
> So my question is how can I share an object between successive  
> requests?

Well, that is persistent storage.  Common tools for this include the  
filesystem, mmap'ed storage, and databases.  Remember that apache  
could suddenly go away between any two requests.  -Tim

View raw message