aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/syntax
diff options
context:
space:
mode:
authorDaniel Theophanes <kardianos@gmail.com>2017-02-08 10:32:22 -0800
committerRuss Cox <rsc@golang.org>2017-02-09 01:12:19 +0000
commit4f6d4bb3f4461e7e25eff24254115b689495e834 (patch)
tree64eac492bd28bfafa42ce9a307010051e69cef8a /src/cmd/compile/internal/syntax
parentc57d91e34cf9a9d6d39b75e2f401bdf6a27447aa (diff)
downloadgo-4f6d4bb3f4461e7e25eff24254115b689495e834.tar.xz
database/sql: do not exhaust connection pool on conn request timeout
Previously if a context was canceled while it was waiting for a connection request, that connection request would leak. To prevent this remove the pending connection request if the context is canceled and ensure no connection has been sent on the channel. This requires a change to how the connection requests are represented in the DB. Fixes #18995 Change-Id: I9a274b48b8f4f7ca46cdee166faa38f56d030852 Reviewed-on: https://go-review.googlesource.com/36563 Reviewed-by: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/syntax')
0 files changed, 0 insertions, 0 deletions