Steve Holden wrote: > Is it just me, or does CherryPy take a *really* long time to start up > and restart?
How long is *really* long? Longer than 1.5 seconds? C:\Python24\Lib\site-packages>python cherrypy\test\hello.py [30/Oct/2006:09:12:25] HTTP Serving HTTP on http://localhost:8080/ 1.56200003624 [30/Oct/2006:09:12:25] ENGINE CherryPy shut down [30/Oct/2006:09:12:26] HTTP HTTP Server shut down 2.66400003433 import os ##import pyconquer ##tr = pyconquer.Logger("cherrypy") ##tr.out = open(os.path.join(os.path.dirname(__file__), "startup.log"), "wb") try: ## tr.start() import time start = time.time() import cherrypy class HelloWorld: def index(self): return "Hello world!" index.exposed = True cherrypy.tree.mount(HelloWorld()) cherrypy.server.quickstart() cherrypy.engine.start(blocking=False) print time.time() - start cherrypy.engine.stop() cherrypy.server.stop() print time.time() - start finally: pass ## tr.stop() ## tr.out.close() Robert Brewer System Architect Amor Ministries [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~----------~----~----~----~------~----~------~--~---

