-
Notifications
You must be signed in to change notification settings - Fork 2.3k
PingContext not cancel when ctx deadline #1005
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
Comments
Have you tried master branch? |
#823 implements Ping but it is not included in 1.4 series and v1.5 is not released yet. |
ok, I will try. |
yes,when use master, the problem not exist, thank you! |
Issue description
when i specially use a unavailable mysql server address to test PingContext, PingContext not cancel when ctx deadline, and every time it will cost 21 seconds when return error of " dial tcp 192.168.31.123:3306: connect: connection refused", but it should return error of "context canceled" after my ctx timeout.
Example code
The text was updated successfully, but these errors were encountered: