mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-10-07 09:44:43 +00:00

This is often encountered when the host the db is on is restarted. For example, a reboot of AWS Aurora causes this. If we don't handle this properly the PgListeners are stuck in an erroring state, even when the DB is back online. By catching it here, we will reconnect when it is (eventually) back online.