pgsql: Fix inconsistent error handling for GSS encryption in PQconnectP

2023-03-13 Thread Michael Paquier
Fix inconsistent error handling for GSS encryption in PQconnectPoll() The error cases for TLS and GSS encryption were inconsistent. After TLS fails, the connection is marked as dead and follow-up calls of PQconnectPoll() would return immediately, but GSS encryption was not doing that, so the conn

pgsql: Fix inconsistent error handling for GSS encryption in PQconnectP

2023-03-13 Thread Michael Paquier
Fix inconsistent error handling for GSS encryption in PQconnectPoll() The error cases for TLS and GSS encryption were inconsistent. After TLS fails, the connection is marked as dead and follow-up calls of PQconnectPoll() would return immediately, but GSS encryption was not doing that, so the conn

pgsql: Fix inconsistent error handling for GSS encryption in PQconnectP

2023-03-13 Thread Michael Paquier
Fix inconsistent error handling for GSS encryption in PQconnectPoll() The error cases for TLS and GSS encryption were inconsistent. After TLS fails, the connection is marked as dead and follow-up calls of PQconnectPoll() would return immediately, but GSS encryption was not doing that, so the conn

pgsql: Fix inconsistent error handling for GSS encryption in PQconnectP

2023-03-13 Thread Michael Paquier
Fix inconsistent error handling for GSS encryption in PQconnectPoll() The error cases for TLS and GSS encryption were inconsistent. After TLS fails, the connection is marked as dead and follow-up calls of PQconnectPoll() would return immediately, but GSS encryption was not doing that, so the conn

pgsql: Fix inconsistent error handling for GSS encryption in PQconnectP

2023-03-13 Thread Michael Paquier
Fix inconsistent error handling for GSS encryption in PQconnectPoll() The error cases for TLS and GSS encryption were inconsistent. After TLS fails, the connection is marked as dead and follow-up calls of PQconnectPoll() would return immediately, but GSS encryption was not doing that, so the conn