supabase / supavisor

A cloud-native, multi-tenant Postgres connection pooler.
https://supabase.github.io/supavisor/
Apache License 2.0
1.66k stars 55 forks source link

Handle `Receive query error` #320

Open chasers opened 4 months ago

chasers commented 4 months ago

Based on: https://github.com/riverqueue/river/issues/238#issuecomment-1970260899

I was able to reproduce locally with the linked repo: https://github.com/JanRuettinger/river_issue/tree/main

We are getting:

ClientHandler: Receive query error: {:error, {:invalid_msg, {:tls_alert, {:bad_record_mac, 'TLS server: In state connection at tls_record_1_3.erl:351 generated SERVER ALERT: Fatal - Bad Record MAC\n decryption_failed'}}}}

Which I suspect is leaving stray connections open which eventually eats up the connection pool?