On 18.03.25 21:18, Andres Freund wrote:
On 2025-03-13 09:37:37 +0100, Francesco Canovai wrote:
In this scenario, `tcp_user_timeout` could close a connection retrying
the SYNs (even though it doesn't seem to do it from the documentation,
it works) the parameter will affect the entire connection.
`connect_timeout`, doesn't work with `PQconnectPoll`, so it won't
prevent the walreceiver from timing out.

Why not implement timeout support for PQconnectPoll?

Yes, that seems better. It is currently documented that this is intentionally not supported (see just above [0]), but we should find a way to solve that.


[0]: https://www.postgresql.org/docs/devel/libpq-connect.html#LIBPQ-PQSOCKETPOLL



Reply via email to