]> git.ipfire.org Git - thirdparty/pdns.git/commit
auth: Check the connection status in addition to PQstatus() 5245/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Sun, 14 May 2017 12:52:20 +0000 (14:52 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 13 Jun 2017 13:47:08 +0000 (15:47 +0200)
commit5e7ff7b94b7d50cb0d840dbb59551df75f8cf690
treee27e2fa43fc4d658d0f597b1a572a69cec28a7a2
parent8fc3a46d88e86b5572f36e9d0bf0d35ef3c6c172
auth: Check the connection status in addition to PQstatus()

`PQstatus()` only checks the known state of the connection. It's
useful because if the connection is already known to be bad we don't
need to go further, but it isn't sufficient to detect whether it has
been closed since the last time we used it.
modules/gpgsqlbackend/spgsql.cc