Re: Supporting TCP_SYNCNT in libpq - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Supporting TCP_SYNCNT in libpq
Date
Msg-id 97ad7af8-505b-4918-8821-5dc97bfdcdc3@eisentraut.org
Whole thread Raw
In response to Re: Supporting TCP_SYNCNT in libpq  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
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




pgsql-hackers by date:

Previous
From: Jim Jones
Date:
Subject: Re: [PATCH] Add CANONICAL option to xmlserialize
Next
From: Amit Kapila
Date:
Subject: Re: Conflict detection for multiple_unique_conflicts in logical replication