diff options
| author | Chris McDonough <chrism@plope.com> | 2011-01-29 02:34:40 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-01-29 02:34:40 -0500 |
| commit | 9afa52f0783d77b19e6ff0a509c5d556950a8a46 (patch) | |
| tree | f140a2fc3f6eb3792c9b7bb851a63b39de567ab6 /docs/tutorials/wiki/basiclayout.rst | |
| parent | a936df49ac018656df417b5a76bf04b620cfcdc9 (diff) | |
| download | pyramid-9afa52f0783d77b19e6ff0a509c5d556950a8a46.tar.gz pyramid-9afa52f0783d77b19e6ff0a509c5d556950a8a46.tar.bz2 pyramid-9afa52f0783d77b19e6ff0a509c5d556950a8a46.zip | |
- Added ``egg:repoze.retry#retry`` middleware to the WSGI pipeline in ZODB
templates (retry ZODB conflict errors which occur in normal operations).
Diffstat (limited to 'docs/tutorials/wiki/basiclayout.rst')
| -rw-r--r-- | docs/tutorials/wiki/basiclayout.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/tutorials/wiki/basiclayout.rst b/docs/tutorials/wiki/basiclayout.rst index 884f17840..7fe7daac8 100644 --- a/docs/tutorials/wiki/basiclayout.rst +++ b/docs/tutorials/wiki/basiclayout.rst @@ -187,6 +187,11 @@ The ``egg:repoze.zodbconn#closer`` middleware is in the middle of the pipeline. This is a piece of middleware which closes the ZODB connection opened by the ``PersistentApplicationFinder`` at the end of the request. +The ``egg:repoze.retry#retry`` middleware catches ``ConflictError`` +exceptions from ZODB and retries the request up to three times (ZODB is an +optimistic concurrency database that relies on application-level transaction +retries when a conflict occurs). + The ``tm`` middleware is the last piece of middleware in the pipeline. This commits a transaction near the end of the request unless there's an exception raised or the HTTP response code is an error code. The ``tm`` refers to the |
