Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 1 and Version 2 of ModPythonIntegration


Ignore:
Timestamp:
10/24/05 17:38:51 (14 years ago)
Author:
leo mendoza
Comment:

fixed exception handling bringing down entire server

Legend:

Unmodified
Added
Removed
Modified
  • ModPythonIntegration

    v1 v2  
    5252}}} 
    5353 
     54Also, in mpcp.py you may want to make the following change. In the current implementation, when an exception occurs it brings down the cherrypy server. But, because its persistent, it never gets brought back up. To fix this: 
     55{{{ 
     56#!python 
     57def setup(options): 
     58           global _isSetup 
     59...             
     60-          cherrypy.server.start(initOnly=True) 
     61+          try: 
     62+              cherrypy.server.start(initOnly=True) 
     63+          except cherrypy.NotReady: 
     64+              cherrypy.server.restart() 
     65... 
     66}}} 
     67 
    5468I assume at some point, the mpcp will be changed to match the new CherryPy thread handling routine. The mpcp used for this mini HOWTO was 1.0... double check to see the purge requests aren't there already. 
    5569