vapor / postgres-nio

🐘 Non-blocking, event-driven Swift client for PostgreSQL.
https://api.vapor.codes/postgresnio/documentation/postgresnio/
MIT License
304 stars 70 forks source link

Fix crash when recreating minimal connections #480

Closed fabianfett closed 1 month ago

fabianfett commented 1 month ago

Thanks @lovetodream for the detailed bug report. Fixes #479.

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 60.11%. Comparing base (d379584) to head (67d24d0).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #480 +/- ## ========================================== + Coverage 60.10% 60.11% +0.01% ========================================== Files 125 125 Lines 9174 9174 ========================================== + Hits 5514 5515 +1 + Misses 3660 3659 -1 ``` | [Files](https://app.codecov.io/gh/vapor/postgres-nio/pull/480?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor) | Coverage Δ | | |---|---|---| | [...nPoolModule/PoolStateMachine+ConnectionGroup.swift](https://app.codecov.io/gh/vapor/postgres-nio/pull/480?src=pr&el=tree&filepath=Sources%2FConnectionPoolModule%2FPoolStateMachine%2BConnectionGroup.swift&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor#diff-U291cmNlcy9Db25uZWN0aW9uUG9vbE1vZHVsZS9Qb29sU3RhdGVNYWNoaW5lK0Nvbm5lY3Rpb25Hcm91cC5zd2lmdA==) | `87.53% <100.00%> (ø)` | | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/vapor/postgres-nio/pull/480/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor)