Skip to content

Fix resource pool regression in persistent-mysql-haskell, persistent. - #5

Open
swamp-agr wants to merge 2 commits into
persistent-mysql-haskell-9.2from
fix-resource-pool-regression
Open

Fix resource pool regression in persistent-mysql-haskell, persistent.#5
swamp-agr wants to merge 2 commits into
persistent-mysql-haskell-9.2from
fix-resource-pool-regression

Conversation

@swamp-agr

@swamp-agr swamp-agr commented Aug 26, 2026

Copy link
Copy Markdown

This PR fixes regression introduced in resource-pool-0.5.0.0. It sets bracket on connection errors and makes closing connection uninterruptible. Second commit fixes loggedClose from persistent by making it uninterruptible since it could be interrupted, resource-pool is no longer guaranteeing that.

@swamp-agr
swamp-agr force-pushed the fix-resource-pool-regression branch from e9825fc to 7d75de5 Compare August 26, 2026 10:44
@swamp-agr

Copy link
Copy Markdown
Author

Note: this is a PR into "persistent-mysql-haskell-9.2" branch of the current fork.

@cdfa

cdfa commented Aug 26, 2026

Copy link
Copy Markdown

Will try to have a look at the code tomorrow, but since this resource-pool update also caused issues in hedis and I would expect a library like resource-pool to not make it so easy to leak things, I'm wondering why the behaviour was changed this way and why we aren't fixing it more "centrally". Do you know?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants