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, 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.
 
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?
 
Scott Burton
 
 


Get your FREE download of MSN Explorer at http://explorer.msn.com.