Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 672

Show
Ignore:
Timestamp:
09/21/05 04:02:44
Author:
rdelon
Message:

Fixed #313 (when favicon.ico was being served, the session wasn't released because the machinery was being bypassed)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/_cphttptools.py

    r671 r672  
    756756            icofile = os.path.join(os.path.dirname(__file__), "favicon.ico") 
    757757            cptools.serveFile(icofile) 
     758            applyFilters('beforeFinalize') 
    758759            finalize() 
    759760            raise cherrypy.RequestHandled() 
  • trunk/cherrypy/lib/filter/sessionfilter.py

    r665 r672  
    205205    def _clean(self, sess): 
    206206        if getattr(sess, 'locked', None): 
    207             # If the session is still locked there probably was an 
    208             #   error while processing the request. 
    209             #   In that case we release the lock anyway. 
     207            # If the session is still locked we release the lock 
    210208            sess.sessionStorage.releaseLock() 
    211209        if getattr(sess, 'sessionStorage', None): 
     
    235233            if time.time() - startTime > sess.deadlockTimeout: 
    236234                raise SessionDeadlockError() 
     235            time.sleep(0.5) 
    237236        sess.locked = True 
    238237     

Hosted by WebFaction

Log in as guest/cpguest to create tickets