pg.ddx.io  pgbouncer/pgbouncer GitHub issues and pull requests  
help / color / mirror / Atom feed
From: ritojoao (@ritojoao) <noreply+ritojoao@github.com>
To: pgbouncer/pgbouncer <noreply+pgbouncer-pgbouncer@github.com>
Subject: Re: [pgbouncer/pgbouncer] issue #1702: CancelRequest can use the wrong host from a host list
Date: Mon, 16 Nov 2026 12:46:48 +0000
Message-ID: <gh-pgbouncer-pgbouncer-1702-c6916820255@github.com> (raw)
In-Reply-To: <gh-pgbouncer-pgbouncer-1702@github.com>
References: <gh-pgbouncer-pgbouncer-1702@github.com>

Hi, I looked at this and think the cause is that `dns_connect()` advances the round-robin counter for the cancel connection, so the cancel goes to the next host in the list. I opened a PR with a fix and the test results: https://github.com/pgbouncer/pgbouncer/pull/1710. I reproduced it with two servers (3 of 6 cancels failed before, 0 of 6 after). It may also be related to #1217, but I did not test that. Feedback is welcome.


view thread (5+ messages)  latest in thread

Message-ID: <gh-pgbouncer-pgbouncer-1702-c6916820255@github.com>
Permalink:  ../gh-pgbouncer-pgbouncer-1702-c6916820255@github.com/

 · 


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