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

pg-1.3.x hangs indefinitely in case of connection error on Windows #458

Closed
larskanis opened this issue Jun 8, 2022 · 0 comments · Fixed by #459
Closed

pg-1.3.x hangs indefinitely in case of connection error on Windows #458

larskanis opened this issue Jun 8, 2022 · 0 comments · Fixed by #459

Comments

@larskanis
Copy link
Collaborator

Test case:

RUBY_PLATFORM              # => "x64-mingw-ucrt"
PG.connect(host: "ct.de")  # hangs indefinitely

The host "ct.de" doesn't offer PostgreSQL service and the connection should timeout after 2 minutes.

pg-1.2.4 doesn't have this behavior but raises a PG::ConnectionBad after 2 minutes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant