Re: confusing positioning of notes in connection settings

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
Cc: "Jonathan S(dot) Katz" <jkatz(at)postgresql(dot)org>, Pg Docs <pgsql-docs(at)lists(dot)postgresql(dot)org>
Subject: Re: confusing positioning of notes in connection settings
Date: 2023-04-26 08:18:29
Message-ID: D70737D3-C949-471A-9471-9E2C22C428F4@yesql.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

> On 26 Apr 2023, at 08:08, Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)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

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Daniel Gustafsson 2023-04-26 11:36:34 Re: confusing positioning of notes in connection settings
Previous Message Peter Eisentraut 2023-04-26 06:08:36 Re: confusing positioning of notes in connection settings