hi guys,

this afternoon we've been stress testing our webkit-powered servers by
making lots of requests for a single .psp-page, containing a
simple threadsafe singleton counter counting up the number of times the
page been rendered. some of the times the server registred an error
giving the following traceback. 

Traceback (most recent call last):
  File "./WebKit/Application.py", line 388, in dispatchRequest
  File "./WebKit/Application.py", line 534, in handleGoodURL
  File "./WebKit/Application.py", line 989, in
createServletInTransaction
  File "./WebKit/Application.py", line 916, in getServlet
  File "./PSP/PSPServletFactory.py", line 177, in servletForTransaction
  File "./PSP/PSPCompiler.py", line 60, in compile
  File "./PSP/ServletWriter.py", line 79, in close
OSError: [Errno 2] No such file or directory:
'/home/webkit/nbwsite/Cache/PSP/_home_webkit_nbwsite_NBWContext_fun_index_psp.py'

does anybody know the cause of this exception. it seems the code in
ServletWriter(79) simply tries to remove a file, and the file is
reported by the os module to not exist.

without really digging deep into this; it seems the servlet factory is
out of cached instances of the compiled psp-page and tries to create a
new one. i tried to put a try-catch around the offending line in
ServletWriter without really knowing if that has any bad side effects,
and the problem seemed to go away.

was i barking up the wrong tree?

best regards

/largo




-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to