Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add -db_connect_timeout_ms for timing out mysqld conns. #5832

Merged
merged 1 commit into from
Mar 5, 2020

Conversation

adsr
Copy link
Collaborator

@adsr adsr commented Feb 19, 2020

(Refreshed version of #5307)

While testing vttablet-mysqld over TCP, we noticed mysql.Connect
sometimes blocks forever if the backend mysqld hit max conns. This
patch adds a timeout to this codepath. It defaults to 0 (no timeout)
for back compatibility.

Signed-off-by: Adam Saponara as@php.net

@sougou
Copy link
Contributor

sougou commented Feb 22, 2020

Need to fix the formating.

While testing vttablet-mysqld over TCP, we noticed mysql.Connect
sometimes blocks forever if the backend mysqld hit max conns. This
patch adds a timeout to this codepath. It defaults to 0 (no timeout)
for back compatibility.

Signed-off-by: Adam Saponara <as@php.net>
@adsr
Copy link
Collaborator Author

adsr commented Feb 24, 2020

Woops, missed gofmt on one file. Fixed.

@adsr adsr closed this Mar 3, 2020
@adsr adsr reopened this Mar 3, 2020
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