📜  psycopg2.operationalerror:ssl 系统调用错误:检测到 eof - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:16.407000             🧑  作者: Mango

代码示例1
keepalive_kwargs = {
    "keepalives": 1,
    "keepalives_idle": 30,
    "keepalives_interval": 5,
    "keepalives_count": 5,
}

conection = psycopg2.connect(connection_string, **keepalive_kwargs)