> On 26 Apr 2023, at 08:08, Peter Eisentraut 
> <peter.eisentr...@enterprisedb.com> wrote:

> I wonder if the notes are even true.  The text for tcp_keepalives_interval 
> already says that it is only supported if TCP_KEEPCNT is supported.

Don't forget the "and on Windows;" part.

>  There is no specific code for Windows.

We have pq_setkeepaliveswin32() for Windows which can work on Windows 2000 and
later versions based on the existence of SIO_KEEPALIVE_VALS.

> Random googling suggests that TCP_KEEPCNT does exist on Windows.

For Windows what you want is SIO_KEEPALIVE_VALS.

--
Daniel Gustafsson



Reply via email to