TCP keepalive support for libpq

Поиск
Список
Период
Сортировка
От Tollef Fog Heen
Тема TCP keepalive support for libpq
Дата
Msg-id 87d40ea7dr.fsf@qurzaw.linpro.no
обсуждение исходный текст
Ответы Re: TCP keepalive support for libpq  (Magnus Hagander <magnus@hagander.net>)
Re: TCP keepalive support for libpq  (Andrew Chernow <ac@esilo.com>)
Список pgsql-hackers
(please Cc me on replies, I am not subscribed)

Hi,

libpq currently does not use TCP keepalives.  This is a problem in our
case where we have some clients waiting for notifies and then the
connection is dropped on the server side.  The client never gets the FIN
and thinks the connection is up.  The attached patch unconditionally
adds keepalives.  I chose unconditionally as this is what the server
does.  We didn't need the ability to tune the timeouts, but that could
be added with reasonable ease.

--
Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are

Вложения

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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: buildfarm breakage
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: TCP keepalive support for libpq