Re: Supporting TCP_SYNCNT in libpq

From: Andres Freund <andres(at)anarazel(dot)de>
To: Francesco Canovai <francesco(dot)canovai(at)enterprisedb(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Supporting TCP_SYNCNT in libpq
Date: 2025-03-18 20:18:24
Message-ID: kdqou7nbsonhkdveea3mt2wnle4tr5sscmuqip7xmv3klnrudk@mhzl7imos6jk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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 work with `PQconnectPoll`, so it won't
> prevent the walreceiver from timing out.

Why not implement timeout support for PQconnectPoll?

Greetings,

Andres Freund

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2025-03-18 20:22:45 Increase default maintenance_io_concurrency to 16
Previous Message Álvaro Herrera 2025-03-18 20:17:18 Re: pg_stat_statements and "IN" conditions