Skip to content

mobc connection pool #181

Closed Answered by weiznich
byblakeorriver asked this question in Q&A
Aug 21, 2024 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

I have not seen this behavior yet, so I'm not sure where it's coming from. I cannot really say what's the best way to debug this.

That written: You configure your pool to use RecyclingMethod::Fast, which essentially skips a check whether the connection is still usable. You might want to prefer using RecyclingMethod::Verified (the default), which performs a check query before assuming that the connection still works. In your particular case it might be that the connection is just closed by the server or by any network interruption. RecyclingMethod::Verified would detect this case and open a new connection instead.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@byblakeorriver
Comment options

@byblakeorriver
Comment options

@byblakeorriver
Comment options

Answer selected by byblakeorriver
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants