Re: psycopg3: a first report

Поиск
Список
Период
Сортировка
От Daniele Varrazzo
Тема Re: psycopg3: a first report
Дата
Msg-id CA+mi_8YUNBR7yE1MgmRPoL0E4JcrjRGR97gTCtOxzswRwJrPMg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: psycopg3: a first report  (Stefan Knecht <knecht.stefan@gmail.com>)
Список psycopg
Hi Stefan,

On Mon, 30 Mar 2020, 17:27 Stefan Knecht, <knecht.stefan@gmail.com> wrote:

If I may, one thing that has been a constant troublemaker for us - running primarily on AWS - is timeouts. I would love to see a fundamental implementation of timeouts at the connection level, regardless of activity - e.g. in the middle of a query, between queries, etc.. If the connection hangs (because the server disappeared or failed over) or does not respond (particularly in the weird cases like when the destination IP just vanishes and the tcp timeout kicks in) - I'd like to know about it within a reasonable time and be able to react to that.

It would be interesting to set up integration tests wirh connections being disrupted in various ways and at different moments during connection and query processes. I'd rather do them in a test framework rather than one-off.

Mitmproxy could be a nice tool to build them.


-- Daniele

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

Предыдущее
От: Stefan Knecht
Дата:
Сообщение: Re: psycopg3: a first report
Следующее
От: Daniele Varrazzo
Дата:
Сообщение: Re: psycopg3: a first report