Dear members,
I have global static array in my module which needs to be updated in every
5 seconds in my apache input filter.
I wrote a monitoring thread with boost::thread which runs in background and
updates the list every 5 seconds.
But this works only when I run apache in single thread mode wit
On 20 Apr 2014, at 09:05, Hassan Monfared wrote:
> Dear members,
> I have global static array in my module
What do you mean by a global static array?
In normal operation, apache runs multi-process.
So what looks like global static is actually per-process.
Think that through and it'll probably t
Hi Nick,
Tanks for reply.
The array is a list of client IPs to be blocked.
I used apr threads and moved the thread creation to ap_hook_child_init()
In this case the thread worked fine separately in each process.
Another question arises here.
Does the array which is initialized in the main process
Hi,
Shared memory is the only way between processes to share some data.
Sent from my iPhone
> On 2014 bal. 20, at 14:47, Hassan Monfared wrote:
>
> Hi Nick,
> Tanks for reply.
> The array is a list of client IPs to be blocked.
> I used apr threads and moved the thread creation to ap_hook_chi