Skip to content

Commit

Permalink
Merge pull request #1596 from 4el0ve4ek/fix_close_item_context
Browse files Browse the repository at this point in the history
fix context which is used for closing session
  • Loading branch information
asmyasnikov authored Dec 23, 2024
2 parents ee17f9a + f734273 commit 44135d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
* Fixed connections pool leak on closing sessions
* Fixed an error in logging session deletion events

## v3.95.3
Expand Down
2 changes: 1 addition & 1 deletion internal/pool/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ func makeAsyncCloseItemFunc[PT ItemConstraint[T], T any](
defer closeItemCancel()

if d := p.config.closeTimeout; d > 0 {
closeItemCtx, closeItemCancel = xcontext.WithTimeout(ctx, d)
closeItemCtx, closeItemCancel = xcontext.WithTimeout(closeItemCtx, d)
defer closeItemCancel()
}

Expand Down

0 comments on commit 44135d1

Please sign in to comment.