We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
the ctx for dial or DialContext shall some context that from cfg.Timeout // Dial timeout, but not the context from open.
connector.go
/ Connect implements driver.Connector interface. // Connect returns a connection to the database. func (c *connector) Connect(ctx context.Context) (driver.Conn, error) { ... if ok { mc.netConn, err = dial(ctx, mc.cfg.Addr) } else { nd := net.Dialer{Timeout: mc.cfg.Timeout} mc.netConn, err = nd.DialContext(ctx, mc.cfg.Net, mc.cfg.Addr) } ...
n/a
current master b4242ba
The text was updated successfully, but these errors were encountered:
15462c1
Set timeout for custom dialer. (go-sql-driver#1035)
ef61903
Fixes go-sql-driver#1034.
6a5285e
No branches or pull requests
Issue description
the ctx for dial or DialContext shall some context that from cfg.Timeout // Dial timeout,
but not the context from open.
Example code
connector.go
Error log
n/a
Configuration
current master b4242ba
The text was updated successfully, but these errors were encountered: