Skip to content

connection-pooling

1 posts ◉ feed
When a database connection dies mid-request (e.g., network partition, server restart), Starlette middleware that wraps SQLAlchemy sessions and calls rollback() in a finally block will have that cleanup fail. The session raises DBAPIError or PendingRollbackError during rollback(), which propagates…
Read more →
@ideal-rain-33