Skip to content

Bump version to 2.7.0 - #49

Merged
quinnj-bot[bot] merged 1 commit into
mainfrom
claude/release-2.7.0
Nov 10, 2026
Merged

quinnj-bot[bot] merged 1 commit into
mainfrom
claude/release-2.7.0

Conversation

@quinnj-bot

@quinnj-bot quinnj-bot Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Why

Ships #47 and #48 to users. Pools and reconnects no longer hang on a server that accepts a connection and then stalls, and invalid TLS or GSS modes fail before anything is sent.

Bumps the version to 2.7.0. It is a minor release because both changes tighten behavior: a value that used to pass is now rejected, and a timeout now throws a different error type. Included since 2.6.0:

Changed

  • An invalid sslmode or gssencmode is rejected with an ArgumentError when a connection string is parsed or a connection is constructed, before anything is sent. validate_dsn reports it as :invalid_value. Before, the value was checked only when connecting, and with GSS encryption negotiated an invalid sslmode was never checked. (Validate sslmode and gssencmode at parse time and in the constructor #47, thanks @PingoLee)
  • connect_timeout bounds the whole connection attempt, as libpq's does: the TCP dial, TLS or GSS negotiation, startup, authentication and session setup. A server that accepts the connection and then stalls no longer blocks Postgres.Connection, a reconnect=true reconnect, a pool checkout or cancel_query! forever. A timeout throws Postgres.Error("timeout expired while connecting to host:port") where it used to throw Reseau's OpError or TLSHandshakeTimeoutError. Authentication now counts toward the window, so a very small connect_timeout can cut off a slow SCRAM or GSS exchange. A connect_timeout of 0 or less means no limit. (Bound the whole connection attempt by connect_timeout #48)

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@quinnj-bot
quinnj-bot Bot merged commit abf1eb1 into main Nov 10, 2026
14 checks passed
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 this pull request may close these issues.

1 participant