httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bh...@gensym.com (Ben Hyde)
Subject Re: mutex in palloc
Date Thu, 11 Dec 1997 09:20:50 GMT
Ben Laurie wrote:
>Assuming that people will guess correctly still seems rash to me.

Mod_example has got a rash.  It maintains a history in a
module local pool with out any mutual exclusion.  I
guess dis module is not thread safe.

Presumably this rash pops out when ever a module
attempts to maintain any state that crosses 
request boundries (cookies, caches, users, tracking,
sessions, connections).

Bummer this could lead to having to revisit a lot of
modules.  It maybe approprate to assume modules are
not thread safe and serialize calling into them with
a per module mutex implemented in the core.

Writing a thread safe module requires a bag of tricks.
Beware of those global pools that got passed during
configuration, just for example.

 - ben

ps. permanent_pool shouldn't be a global.

Mime
View raw message