You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Nikunj Virani <ni...@cybage.com> on 2005/10/25 12:07:16 UTC
[users@httpd] Global Variables in Apache2 module with MPM support.
Need urgent help. Any inputs would be welcome.
I am working apache 2.0 module development with MPM support. We have a
DSO module which helps us to process request of particular extension.
This module is supposed to count the number of requests that are
successfully processed and number of requests that fail on Apache and
some similar information. For this we are using a global structure which
will have different data members to store counts of different type.
Currently we are initializing this global structure variable at the
startup of apache 2 parent process and all child process modifies and
accesses its value. But somehow the parent process is not able to get
the modified value of this global variable.
Let me know, if I am doing it right! If not then is there other way of
doing it. Feel free to ask me if you need more inputs to answers this
query.
Thanks,
Nikunj Virani
Re: [users@httpd] Global Variables in Apache2 module with MPM support.
Posted by Nick Kew <ni...@webthing.com>.
On Tuesday 25 October 2005 11:07, Nikunj Virani wrote:
> Need urgent help. Any inputs would be welcome.
What's the problem with the replies you already have in apache-modules?
--
Nick Kew
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Global Variables in Apache2 module with MPM support.
Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
Philip M. Gollucci wrote:
>> apache-modules@covalent.net is just such a list for discussing how-to
>
> I seem to remember trying to subscribe to this in days past and not
> being able to. Is there a link you can post ?
apache-modules-subscribe .at. covalent.net - nothing special.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Global Variables in Apache2 module with MPM support.
Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
> apache-modules@covalent.net is just such a list for discussing how-to
I seem to remember trying to subscribe to this in days past and not being able to.
Is there a link you can post ?
--
END
------------------------------------------------------------
What doesn't kill us can only make us stronger.
Nothing is impossible.
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
http://www.liquidityservicesinc.com
http://www.liquidation.com
http://www.uksurplus.com
http://www.govliquidation.com
http://www.gowholesale.com
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Global Variables in Apache2 module with MPM support.
Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
Nikunj Virani wrote:
>
> I am working apache 2.0 module development with MPM support. We have a
> *DSO module* which helps us to process request of particular extension.
> This module is supposed to count the number of requests that are
> successfully processed and number of requests that fail on Apache and
> some similar information. For this we are using a global structure which
> will have different data members to store counts of different type.
> Currently we are initializing this global structure variable at the
> startup of apache 2 parent process and all child process modifies and
> accesses its value. But somehow the parent process is not able to get
> the modified value of this global variable.
Of course not, that's normal paged memory. Read up on fork(), you will
observe that each child process gets it's own *copy* (it may be shared
initially but tagged copy-on-write).
You need a shared memory segment, al la apr_shm_*(), but this isn't a
particularly great place to go into the mechanics of module authoring.
apache-modules@covalent.net is just such a list for discussing how-to
author a module.
Bill
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org