On Jun 24, 2009, at 12:47 PM, Brian Kim wrote:

In mod_proxy_http.c, I globally declared a variable, like unsiged int count = 0;

And I make it increase whenever the proxy gets a new http request.

You mean when your httpd child processes get a new http request.

I expect it increases like 1, 2, 3, 4,... but it is always same 1.

How many test requests did you use, did you touch all the children?

Does anydoby know why this happens? How can I use a global variable in
mod_proxy_http?

Declare it as shared memory, or extend the existing Scoreboard. See mod_example_ipc.c for the former.

http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/examples/mod_example_ipc.c?view=co

I am really new to this proxy stuff. I hope somebody can anwser to my
simple question.


S.

--
Sander Temme
scte...@apache.org
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF



Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to