From: cosgroveb (@cosgroveb) <noreply+cosgroveb@github.com>
To: pgbouncer/pgbouncer <noreply+pgbouncer-pgbouncer@github.com>
Subject: Re: [pgbouncer/pgbouncer] PR #1698: Fix use-after-free of server TLS config on SIGHUP
Date: Fri, 06 Nov 2026 16:29:33 +0000
Message-ID: <gh-pgbouncer-pgbouncer-1698-rc4494885516@github.com> (raw)
In-Reply-To: <gh-pgbouncer-pgbouncer-1698@github.com>
References: <gh-pgbouncer-pgbouncer-1698@github.com>
(on test/test_ssl_sighup_reload.py:39)
Socket timeout suggestions bundle: part 1 of 4 (apply all four together or none of them, since they depend on one another).
Give `accept()` a timeout so the worker can notice `_stop`.
```suggestion
self.sock.listen(5)
self.sock.settimeout(0.1)
```