Postgres will kill idle connections
agentultra opened this issue · 1 comments
agentultra commented
The postgres server will terminate idle connections:
2021-02-15 21:40:18.193 EST [15869] jking@hackday LOG: terminating walsender process due to replication timeout
It sends a message in the replication stream and then terminates within approximately a second. The client should probably respond to this.
I added TCP keep-alive support using the [keep-alive](2021-02-15 21:40:18.193 EST [15869] jking@hackday LOG: terminating walsender process due to replication timeout) library but it doesn't appear to help, maybe it's misconfigured?
agentultra commented
Fixed by #8