Skip to content

Commit 44135d1

Browse files
authored
Merge pull request #1596 from 4el0ve4ek/fix_close_item_context
fix context which is used for closing session
2 parents ee17f9a + f734273 commit 44135d1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
* Fixed connections pool leak on closing sessions
12
* Fixed an error in logging session deletion events
23

34
## v3.95.3

internal/pool/pool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ func makeAsyncCloseItemFunc[PT ItemConstraint[T], T any](
302302
defer closeItemCancel()
303303

304304
if d := p.config.closeTimeout; d > 0 {
305-
closeItemCtx, closeItemCancel = xcontext.WithTimeout(ctx, d)
305+
closeItemCtx, closeItemCancel = xcontext.WithTimeout(closeItemCtx, d)
306306
defer closeItemCancel()
307307
}
308308

0 commit comments

Comments
 (0)