Skip to content

SqlAlchemy mysql connections drop and crash the session #17

Description

@henryhbk

The classic "the MySQL server has gone away" error. This is due to Flask timing out an idle connection pool in the sqlalchemy engine and is fixed by either the pessimistic or optimistic strategies specified in the engine docs:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions