Re: Webware/Apache Threading Problem?

"Chuck Esterbrook" <[email protected]>
Newsgroups gmane.comp.python.webware
Message-ID <[email protected]>
On 9/13/06, Gary Perez <gary.perez-kSqzKFmFPN9Wk0Htik3J/[email protected]> wrote:
> Hello all,
>
> Thanks to everyone for your suggestions, investigations, etc.
> especially to Christoph Zwerschke, who discovered what turned out to
> be the cause of the problem.
>
> Don't use os.chdir() in a threaded environment.
>
> I apologize to everyone if this is common knowledge, but it's news to
> me. At Chris' suggestion, removing the chdir calls in the two modules
> fixes the problem, and everything works as expected.

After launching, should the WebKit app server do something like this:

def bad_chdir(path):
    raise Exception('You cannot reliably use os.chdir() in a threaded
environment.')

os.chdir = bad_chdir

?

Seems like this would catch this kind of error early on and save
people some time.

-Chuck

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.