• Brian Sutherland's avatar
    LP #787541: Fix WSGIPublisher to close requests on abort unconditionally. · 850a3626
    Brian Sutherland authored
    Previously an addAfterCommitHook was used, but this is not run on transaction
    aborts.  Now a Synchronizer is used which unconditionally closes the request
    after a transaction is finished.
    
    Not closing the request seems to have caused the database connections to be
    kept open and these nasty log messages:
    
        CRITICAL ZODB.DB DB.open() has 42 open connections with a pool_size of 7
    
    42 being the wrong answer in this case.
    850a3626
WSGIPublisher.py 8.64 KB