aboutsummaryrefslogtreecommitdiff
path: root/src/encoding
diff options
context:
space:
mode:
authorDaniel Theophanes <kardianos@gmail.com>2017-02-08 21:38:51 -0800
committerRuss Cox <rsc@golang.org>2017-02-10 13:28:32 +0000
commita335c344fac8501ecdf49a0654d1701fb48efe61 (patch)
tree1c30cf6f3d0372493d78b1666ed15bb5ce5eadaf /src/encoding
parent9a7544395ae5075cca2f3f5485f3503f891b5e97 (diff)
downloadgo-a335c344fac8501ecdf49a0654d1701fb48efe61.tar.xz
database/sql: ensure driverConns are closed if not returned to pool
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: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/encoding')
0 files changed, 0 insertions, 0 deletions