Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • G go
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • go
  • Repository
You need to sign in or sign up before continuing.
  • go
  • src
  • database
  • sql
  • sql.go
Find file BlameHistoryPermalink
  • Daniel Theophanes's avatar
    [release-branch.go1.8] database/sql: ensure driverConns are closed if not returned to pool · d84dee06
    Daniel Theophanes authored Feb 08, 2017
    Previously if a connection was requested but timed out during the
    request and when acquiring the db.Lock the connection request
    is fulfilled and the request is unable to be returned to the
    connection pool, then then driver connection would not be closed.
    
    No tests were added or modified because I was unable to determine
    how to trigger this situation without something invasive.
    
    Change-Id: I9d4dc680e3fdcf63d79d212174a5b8b313f363f1
    Reviewed-on: https://go-review.googlesource.com/36641
    
    
    Reviewed-by: default avatarRuss Cox <rsc@golang.org>
    Reviewed-on: https://go-review.googlesource.com/36714
    
    
    Run-TryBot: Russ Cox <rsc@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
    d84dee06
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7