Re: Supporting TCP_SYNCNT in libpq

2025-03-21 Thread Peter Eisentraut
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.

Re: Supporting TCP_SYNCNT in libpq

2025-03-18 Thread Gabriele Bartolini
Ciao Francesco, On Mon, 17 Mar 2025 at 09:19, Francesco Canovai < francesco.cano...@enterprisedb.com> wrote: > This patch introduces support for a `tcp_syn_count` parameter in > libpq, allowing control over the number of SYN retransmissions when > initiating a connection. > > The primary goal is

Re: Supporting TCP_SYNCNT in libpq

2025-03-18 Thread Andres Freund
Hi, 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 wor