Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reconnect when server role changed #1053

Merged
merged 1 commit into from
Oct 9, 2023

Commits on Oct 9, 2023

  1. Remove connection parameter caching in Pool

    Currently, `asyncpt.Pool` will cache various aspects of the connection,
    like the selected host and connection parameters in an attempt to make
    subsequent connection attempts somewhat faster.  This behavior is
    dubious because server host availability and role may change, such as
    when a primary becomes a standby and vice-versa or when a host becomes
    unavailable permanently, but another host from the DSN can be picked up.
    Just remove it.
    ermakov-oleg authored and elprans committed Oct 9, 2023
    Configuration menu
    Copy the full SHA
    893078b View commit details
    Browse the repository at this point in the history