Skip to content

Query timeouts closes underlying connections #1282

Answered by ericreis
ericreis asked this question in Q&A
Discussion options

You must be logged in to vote

@jackc Sorry if I missed some points. I am using pgxpool and the behavior I am getting is the following: I make a query that is canceled by its context. When it happens, the connection is automatically closed even though it wasn't an actual problem with the connection. This is making my application create a bunch of connections when this timeout happens. From what I understood from the v4.17 changelog I should be able to reuse that connection. Right?

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@jackc
Comment options

@ericreis
Comment options

@craigpastro
Comment options

@jackc
Comment options

@craigpastro
Comment options

Answer selected by ericreis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants