[Zope] Thread issue? Should I popen?

Scott Burton mrzope@hotmail.com
Sun, 26 May 2002 00:00:52 +0000


<html><div style='background-color:'><DIV>Hello all, I am having a external method problem. In Zope I added an external method object which is a simple list sorting script. The script sorts a list, loads a class instance which does a socket connection over ssl and returns a response. Easy enough,&nbsp;but... when the ext method is called from Zope it takes about a minute to return a response and the CPU usage goes up to 100% the entire time. However, when I run the same script from the python interpreter, it does its business and returns in about a second. Running the list sorting ext method from Zope without the extra class instance returns my list in .01 seconds. </DIV>
<DIV>&nbsp;</DIV>
<DIV>So, I am asuming it is a thread issue with Zope and my socket connection class? Should I open another Python process to do the socket connection using popen? Should I increase the thread count in Zope? (It didn't seem to make much difference running at 8thds vs. 4thds BTW). Should I attempt to run the class in its own thread?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Scott Burton</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://g.msn.com/1HM305401/44'>http://explorer.msn.com</a>.<br></html>