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

Handle connection timeout and multiple addresses per host #459

Merged
merged 18 commits into from
Jun 14, 2022

Commits on Jun 8, 2022

  1. Add PG::Connection#hostaddr

    It is present since PostgreSQL-12
    larskanis committed Jun 8, 2022
    Configuration menu
    Copy the full SHA
    0ab7533 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bdd1656 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f14c94a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fbcf420 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f05f63c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6d61d3d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    db88cbb View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e04b493 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    0ce44b0 View commit details
    Browse the repository at this point in the history
  10. Remove debug output

    larskanis committed Jun 8, 2022
    Configuration menu
    Copy the full SHA
    1840a41 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    44caa17 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    75f0030 View commit details
    Browse the repository at this point in the history
  13. Fix compat with Windows

    This also fixes that PG.connect can block forever, when the connection can not be established on Windows.
    There was no test case for this error before, but the "connects using URI with multiple hosts" failed since commit c008f3c.
    larskanis committed Jun 8, 2022
    Configuration menu
    Copy the full SHA
    a60b687 View commit details
    Browse the repository at this point in the history
  14. Adjust spec for connect_timeout to pass on older Postgres servers

    and avoid postgresql-11 and earlier on Windows which raises just "timeout expired"
    larskanis committed Jun 8, 2022
    Configuration menu
    Copy the full SHA
    1439380 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    19628ea View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    a193c68 View commit details
    Browse the repository at this point in the history
  17. Fix compat with ruby-2.x

    larskanis committed Jun 8, 2022
    Configuration menu
    Copy the full SHA
    62615eb View commit details
    Browse the repository at this point in the history
  18. Move specs to "OS thread support" into async file

    These specs don't run reliable with sync methods.
    They sometimes block indefinitely.
    larskanis committed Jun 8, 2022
    Configuration menu
    Copy the full SHA
    fc806b8 View commit details
    Browse the repository at this point in the history