This is a discussion on Need process to run in parent and data be available to all child processes regardless of MPM? within the Linux Web Servers forums, part of the Web Server and Related Forums category; I am trying to add ZeroConf ( Apple Bonjour / formerly Apple Rendezvous ) discovery of services to Apache 2.x using the ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I am trying to add ZeroConf ( Apple Bonjour / formerly Apple Rendezvous
) discovery of services to Apache 2.x using the Apple mDNSResponder code. I would like to have a long running Browse process that listens for changes to be in the main apache parent process, and make the data it collects available to all the child processes so they can connect to the discovered services during the request processing phase. My first instinct is to add the long running ( life of the server ) browse code to the server/main.c and store the results in the globalpool, the browse needs to be tied into the Apache 2 event loop to that it can call on a file descriptor periodically to process the incoming data. But I don't understand how the children can access that data? I need this to work in the prefork and worker MPM both. And hacking those modules is not a concern either but I would assume I could write a module that could access the global pool from the parent, but after much digging I can't seem to find where that is made available. I am not interested in any solutions that involve BDB, writing to flat files and the like. I really need to be able to do all this in memory and in process if at all possible. Thanks for any pointers in the right direction. |
|
|||
|
fuzzylollipop wrote:
> I am trying to add ZeroConf ( Apple Bonjour / formerly Apple Rendezvous > ) discovery of services to Apache 2.x using the Apple mDNSResponder > code. I suggest you start by telling us what you're trying to do that isn't currently supported by mod_zeroconf. -- Nick Kew |
|
|||
|
I did tell what I need to do, I need to do long running browses and I
need to talk to the the apple code mDNSResponder client. In case you don't know what mod_zeroconf does, mod_zeroconf is only for registering. |
|
|||
|
but the crux of the matter is I need the code that talks to the apple
mDNSResponder in the parent ( ONCE ) and the children processes modules to be able to access that shared data, and I have had one heck of a time finding out if this is even possible with Apache 2, and if so how! |
|
|||
|
fuzzylollipop wrote:
> but the crux of the matter is I need the code that talks to the apple > mDNSResponder in the parent ( ONCE ) and the children processes modules > to be able to access that shared data, and I have had one heck of a > time finding out if this is even possible with Apache 2, and if so how! > If that's once at server startup it's easy - just use the standard configuration mechanisms. If it's later, you'll have to use shared memory (apr_shm) or similar to share it. -- Nick Kew |
| Thread Tools | |
| Display Modes | |
|
|