thanks for getting into this issue. i'm sorry that i've thought
mongodb was the reason for the deadlock. i've forwarded your testcase
On Jul 7, 11:06 pm, Michael Dirolf <
m...@10gen.com> wrote:
> i've spent a while looking into this issue. i think that the issue
> might be that the JS libraries aren't threadsafe, or at least not when
> they're used in this way. here is an example that doesn't use pymongo
> or cherrypy that deadlocks:
http://mongodb.pastebin.com/m2ecdfebb
>
> thoughts?
>
> On Jul 7, 2009, at 6:10 AM, marc wrote:
>
>
>
>
>
> > hi mike,
>
> > thanks for your investigations and the fix. unfortunately this hasn't
> > fixed the issue. my setup where i use gridfs is a bit complicated.
>
> > i've constructed a testcase with the setup i'm using in my
> > environment:
>
> > this is how it works. cherrypy accepts a request, executes serverside
> > javascript code and returns the result. the javascript has access to
> > mongodb through a wrapper function. jscore and spidermonkey are to
> > show that both js engines have problems with mongodb. to run the
> > testcase, please install cherrypy, pyjscore and python-spidermonkey.
> > sorry for the inconvenience :)
>
> > *
http://code.google.com/p/pyjscore/