Skip to content

Clarify need for connect_timeout in the DSN#1315

Merged
arp242 merged 1 commit intomasterfrom
co
Apr 8, 2026
Merged

Clarify need for connect_timeout in the DSN#1315
arp242 merged 1 commit intomasterfrom
co

Conversation

@arp242
Copy link
Copy Markdown
Collaborator

@arp242 arp242 commented Apr 8, 2026

Add connect_timeout to the examples and clarify why this is a good idea in the README: database/sql may open new connections asynchronously so it doesn't use the context from QueryContext(), PingContext(), etc.

This makes sense, but is somewhat unexpected.

Fixes #1020

Add connect_timeout to the examples and clarify why this is a good idea
in the README: database/sql may open new connections asynchronously so
it doesn't use the context from QueryContext(), PingContext(), etc.

This makes sense, but is somewhat unexpected.

Fixes #1020
@arp242 arp242 merged commit c0f27a8 into master Apr 8, 2026
14 checks passed
@arp242 arp242 deleted the co branch April 8, 2026 13:55
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.

PingContext doesn't respect the Context

1 participant