Skip to content

PingContext only times out after a second #851

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

Closed
kaihendry opened this issue Sep 5, 2018 · 3 comments
Closed

PingContext only times out after a second #851

kaihendry opened this issue Sep 5, 2018 · 3 comments

Comments

@kaihendry
Copy link

Issue description

Fails to time out after two seconds, however does after one second.
https://media.dev.unee-t.com/2018-09-05/pingcontext.mp4

Example code

https://media.dev.unee-t.com/2018-09-05/main.go

Configuration

99ff426

go version go1.11 linux/amd64

5.7.12-log MySQL Community Server (GPL) which is actually AWS Aurora

Archlinux

This might be related: https://stackoverflow.com/a/52178849/4534

@methane
Copy link
Member

methane commented Sep 5, 2018

#705 or #778 may solve it.

@kardianos
Copy link

Yes, either #705 or #778 should solve this. This will allow passing though the context (with correct tmeout) to the initial dial function. In this case no connections have been established from the pool until PingContext is called, thus it is dialing initially.

@methane
Copy link
Member

methane commented Apr 4, 2019

Fixed by #941

@methane methane closed this as completed Apr 4, 2019
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

No branches or pull requests

3 participants