Re: keepalive problem with libpg connection

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: keepalive problem with libpg connection
Дата
Msg-id b42b73150908110810t61dd5b58q218bb2fca02018fb@mail.gmail.com
обсуждение исходный текст
Ответ на keepalive problem with libpg connection  (Juan Backson <juanbackson@gmail.com>)
Список pgsql-general
On Tue, Aug 11, 2009 at 3:56 AM, Juan Backson<juanbackson@gmail.com> wrote:
> Hi,
>
> I am writing my own connection pool for libpq's connection.
>
> My goal is to try to reduce the amount of time spent in opening and closing
> socket.   However, I see that Postgres would close my connection after every
> so often.

it's not postgres, most likely someone in the middle is closing
inactive connections, typically after 3-5 minutes.  check out the
keepalive settings in postgresql.conf to handle this on the tcp level
(better than throwing  a select 1).

merlin

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

Предыдущее
От: Juan Backson
Дата:
Сообщение: keepalive problem with libpg connection
Следующее
От: Jan Verheyden
Дата:
Сообщение: mail alert