Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

Consider making cp_reconnect true by default #171

@anoadragon453

Description

@anoadragon453

A somewhat recent change in Synapse enabled by default the behaviour of reconnecting to the Postgres database after losing connection automatically.

We likely want to consider doing the same for Sygnal.

sygnal/sygnal/sygnal.py

Lines 150 to 155 in e1b9eb8

if db_name == "psycopg2":
logger.info("Using postgresql database")
self.database_engine = "postgresql"
self.database = ConnectionPool(
"psycopg2", cp_reactor=self.reactor, **config["database"].get("args")
)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions