markokr/pgbouncer-dev — pull request #6 by mfenniak (2012-12-07 02:19:30+00:00)
Title: Fix cancellation of waiting clients

Attached pull-request changes cancel handling to search waiting_client_list for client to-be-cancelled, in addition to active_client_list. I've been seeing a few issues with "failed cancel request" errors when a pool is overloaded and client-side timeouts are happening, and this seems to be a logical thing to allow. I'm assuming that cancelling a waiting client will prevent its pending query from ever reaching the backend server.