Skip to content

pools: add timeouts for all conn pools#6063

Merged
sougou merged 3 commits intovitessio:masterfrom
planetscale:ss-pool-timeout
Apr 15, 2020
Merged

pools: add timeouts for all conn pools#6063
sougou merged 3 commits intovitessio:masterfrom
planetscale:ss-pool-timeout

Conversation

@sougou
Copy link
Copy Markdown
Contributor

@sougou sougou commented Apr 14, 2020

This is required to make all pools uniform. Currently, there are two different variables, one for conn pool and one for tx pool. But other pools don't have a timeout.

Additional cleanup:

  • Plumb context through calls to open connections through resource pool.
  • Push down the connection timeout in the mysql params into mysql.Connect.

sougou added 3 commits April 13, 2020 16:48
Since the parameter is in mysql's conn params, that's the right
place to handle this.

Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
This is required to make all pools uniform. Currently, there are
two different variables, one for conn pool and one for tx pool.
But other pools don't have a timeout.

Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
@sougou sougou requested a review from morgo as a code owner April 14, 2020 00:48
@sougou sougou merged commit 90de2db into vitessio:master Apr 15, 2020
@sougou sougou deleted the ss-pool-timeout branch April 15, 2020 20:38
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.

2 participants