Re: libpq async connection and multiple hosts

Поиск
Список
Период
Сортировка
От Daniele Varrazzo
Тема Re: libpq async connection and multiple hosts
Дата
Msg-id CA+mi_8ZBdOfY+MXL=qn7VKtsw7ojftBT32R6=idahr8-VJfvsA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: libpq async connection and multiple hosts  (Jelte Fennema <postgres@jeltef.nl>)
Список pgsql-hackers
On Wed, 25 Oct 2023 at 17:35, Jelte Fennema <postgres@jeltef.nl> wrote:

> Another approach is to use tcp_user_timeout instead of connect_timeout
> to skip non-responsive hosts. It's not completely equivalent though to
> connection_timeout though, since it also applies when the connection
> is actually being used. Also it only works on Linux afaik. It could be
> nice to add support for BSD its TCP_CONNECTIONTIMEOUT socket option.

This seems brittle and platform-dependent enough that we would surely
receive less grief by hardcoding a default two minutes timeout.

-- Daniele



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Daniele Varrazzo
Дата:
Сообщение: Re: libpq async connection and multiple hosts
Следующее
От: Nikita Malakhov
Дата:
Сообщение: Re: remaining sql/json patches