mirror of
https://github.com/floci-io/floci.git
synced 2026-11-29 08:31:53 -05:00
The PostgreSQL authentication fixture could close its local proxy socket after reading ReadyForQuery while the authenticator was still resetting that socket's timeout, and the SocketException escaped a raw virtual thread, landing under whichever test was waiting. ProxyTestAuthentication now runs authentication and bridging through the owned ProxyTestTask, completing a future once authentication finishes, so each test waits for it before closing the socket and a worker's failure reaches the test that started it. Every raw authentication thread in PostgresProtocolHandlerTest goes through these helpers, and the test listeners bind to loopback through one loopbackServerSocket helper. Signed-off-by: Andre Kurait <AndreKurait@gmail.com>