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

Be resilient about a read after connection closed; fixes #449 #452

Closed fabianfett closed 5 months ago

codecov-commenter commented 5 months ago

Codecov Report

Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (e9b90b2) 62.18% compared to head (721b8e8) 62.28%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #452 +/- ## ========================================== + Coverage 62.18% 62.28% +0.09% ========================================== Files 124 124 Lines 9936 9937 +1 ========================================== + Hits 6179 6189 +10 + Misses 3757 3748 -9 ``` | [Files](https://app.codecov.io/gh/vapor/postgres-nio/pull/452?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor) | Coverage Δ | | |---|---|---| | [...nection State Machine/ConnectionStateMachine.swift](https://app.codecov.io/gh/vapor/postgres-nio/pull/452?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor#diff-U291cmNlcy9Qb3N0Z3Jlc05JTy9OZXcvQ29ubmVjdGlvbiBTdGF0ZSBNYWNoaW5lL0Nvbm5lY3Rpb25TdGF0ZU1hY2hpbmUuc3dpZnQ=) | `63.48% <63.15%> (+0.38%)` | :arrow_up: | ... and [2 files with indirect coverage changes](https://app.codecov.io/gh/vapor/postgres-nio/pull/452/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=vapor)