Re: [us...@httpd] global variable use in mod_proxy_http.c

2009-06-24 Thread Brian Kim
Thanks to Sander & André, I clearly understood why it happened and how I can get it over. Now I am looking at an example,.mod_example_ipc.c, to use a shared memory space. Thanks again. On Wed, Jun 24, 2009 at 5:31 PM, André Warnier wrote: > Brian Kim wrote: >> >> Hi. All. >> >> In mod_proxy_http

Re: [us...@httpd] global variable use in mod_proxy_http.c

2009-06-24 Thread André Warnier
Brian Kim wrote: Hi. All. 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. I expect it increases like 1, 2, 3, 4,... but it is always same 1. Does anydoby know why this happens? How can I use a

Re: [us...@httpd] global variable use in mod_proxy_http.c

2009-06-24 Thread Sander Temme
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

[us...@httpd] global variable use in mod_proxy_http.c

2009-06-24 Thread Brian Kim
Hi. All. 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. I expect it increases like 1, 2, 3, 4,... but it is always same 1. Does anydoby know why this happens? How can I use a global variable in