2011/11/11 Torsten Förtsch <[email protected]>:
> On Friday, 11 November 2011 20:09:09 Jason Gionta wrote:
>> While I expect the count to increment by one after each request.  It
>> seems like if there is a time gap between requests (over 10 seconds),
>> the count gets reset (apr_hash_count = 0).
>
> May it be that your requests simply hit another worker process?

That must be it.

Jason, your code is going to run in different child processes as new
client connections are accepted by different child processes.  The
children started off with the same empty hash inherited over fork(),
and in different child processes it will have different contents, at
least once a child handles its first connection.

Reply via email to