database/sql: small DB.SetConnMaxLifetime does not release idle connection #40841
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://play.golang.org/p/jav62YYGNJc
What did you expect to see?
When I do
go1.14.7 run main.go
, got below result.What did you see instead?
When I do
go1.15 run main.go
, got below result and program do not exit.The text was updated successfully, but these errors were encountered: