public inbox for [email protected]  
help / color / mirror / Atom feed
From: Daniele Varrazzo <[email protected]>
To: Stefan Knecht <[email protected]>
Cc: [email protected]
Subject: Re: psycopg3: a first report
Date: Mon, 30 Mar 2020 22:17:53 +1300
Message-ID: <CA+mi_8YUNBR7yE1MgmRPoL0E4JcrjRGR97gTCtOxzswRwJrPMg@mail.gmail.com> (raw)
In-Reply-To: <CAP50yQ_Mt=RtR0sXYoazJTuarphR1Kv8A6YTevCMiv+xZeD9=Q@mail.gmail.com>
References: <CA+mi_8ZH-feQP0+k_j7_joygE=hMZCFnaNMv8Z1KCLKB9YLb0w@mail.gmail.com>
	<CAP50yQ_Mt=RtR0sXYoazJTuarphR1Kv8A6YTevCMiv+xZeD9=Q@mail.gmail.com>

Hi Stefan,

On Mon, 30 Mar 2020, 17:27 Stefan Knecht, <[email protected]> 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.

https://mitmproxy.org/

-- Daniele

>


view thread (8+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: psycopg3: a first report
  In-Reply-To: <CA+mi_8YUNBR7yE1MgmRPoL0E4JcrjRGR97gTCtOxzswRwJrPMg@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox