Re: Writing a monitoring thread in apache filter moudle

2014-04-20 Thread Donatas Abraitis
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

Re: Writing a monitoring thread in apache filter moudle

2014-04-20 Thread Hassan Monfared
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

Re: Writing a monitoring thread in apache filter moudle

2014-04-20 Thread Nick Kew
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