Uploaded image for project: 'MariaDB Connector/Python'
  1. MariaDB Connector/Python
  2. CONPY-174

pool_recycle : reconnect automatically staled/closed connections into the pool

    XMLWordPrintable

Details

    • New Feature
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Connection Pooling
    • None

    Description

      Hi,

      In SQLAlchemy, pool_recycle is super. It replaces staled/closed old connection.
      It's possible to have this feature in CONPY ?

      There is an almost equivalent with ping/reconnect https://mariadb.com/docs/reference/conpy/api/reconnect/, but that would be great that this mechanism (ping/reconnect if necessary) be integrated automatically into ConnectionPool.

      Otherwise, just a timer in ConnectionPool parameter, and at its expiration reconnect.
      Because I know the wait_timeout of my MariaDB server.

      Thx a lot in advance.

      Attachments

        Activity

          People

            georg Georg Richter
            dge el dge
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.