Middleware
namespace TYPO3\
Table of Contents
Classes
- DoctrineCloseConnectionMiddleware
- Closes the open database connections after a worker handled a received message, so the next message starts with a fresh connection in long-running "messenger:consume" workers.
- DoctrinePingConnectionMiddleware
- Pings the open database connections - and transparently reconnects stale ones - before a worker handles a received message. This avoids "server has gone away" failures in long-running "messenger:consume" workers whose connection went idle between messages.