httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pranesh Vadhirajan" <>
Subject RE: [users@httpd] Apache 2.2.3 Session tracking
Date Wed, 16 Nov 2011 14:41:13 GMT
I did not know that I need to have my list in shared memory (I assume that's what you're referring
to as shm in your response).  This is the type of thing that I wanted to know in my question.
 Is there a way to add my linked list into shared memory? I will search for this on the web,
but a quick heads-up on how to do this would be much appreciated. Also, what is modules@ ?


-----Original Message-----
From: Tom Evans [] 
Sent: Wednesday, November 16, 2011 7:26 AM
Subject: Re: [users@httpd] Apache 2.2.3 Session tracking

On Tue, Nov 15, 2011 at 8:40 PM, Pranesh Vadhirajan
<> wrote:
> Should something be modified in Apache modules when maintaining persistent
> memory?  I am having a problem with a linked list implementation that I
> wrote which I am linking with my apache module to maintain a list of
> sessions so that I can track web sessions connecting to our web site at
> work.  I have no trouble when using this linked list implementation outside
> of Apache ( I have a simple test file written in C that simulates sessions
> and I do not have any problems  when running the test), however when I test
> my module in apache on “real” data, I notice that my linked list is seen as
> null in situations when it should not be so.  I can attach relevant parts of
> my code if needed, but I would like to know if there are any known steps
> that need to be taken for apache to properly maintain thread safety.  I am
> using semaphores to protect the integrity of my linked lists across threads
> defined in the semaphore.h header file.
> Respectfully,
> Pranesh

How are you sharing your list between children? Is your linked list in shm?

This might be better directed at modules@



The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message