New submission from Tarek <ziade.ta...@gmail.com>:

If you try to display the index page in repoze.profile, while your app is
hammered by a lot of calls, you will get EOFErrors because the profile data it's
trying to display is being built.

the index() call in __call__ should be protected by the lock to avoid this:

        self.lock.acquire()
        try:
            text = self.index(environ)
        finally:
            self.lock.release()

----------
messages: 455
nosy: tarek
priority: bug
status: unread
title: race condition in repoze.profile

__________________________________
Repoze Bugs <b...@bugs.repoze.org>
<http://bugs.repoze.org/issue168>
__________________________________
_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to