-
-
Notifications
You must be signed in to change notification settings - Fork 90
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Reproduction:
- Start postgres (I'm using docker for this)
- Run
serveand make a request to an endpoint that performs a query - Stop postgres
- Perform the request again, and observe the logged error:
[ ERROR ] connection reset (error set): Connection refused (errno: 61) - Start postgres again
- Perform the request again, this time the process exists with:
Assertion failed: PostgresConnection deinitialized before being closed.: file /Users/ian/code/streambuddy/.build/checkouts/postgres-nio/Sources/PostgresNIO/Connection/PostgresConnection.swift, line 42
Expected outcome:
serve gracefully handles the restart and makes a new connection to postgres.
Actual outcome:
serve exits.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working