mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Handle invalid libpq sockets in more places
Also, make error messages consistent. From: Michael Paquier <michael.paquier@gmail.com>
This commit is contained in:
@ -1058,7 +1058,7 @@ pqSocketCheck(PGconn *conn, int forRead, int forWrite, time_t end_time)
|
||||
if (conn->sock == PGINVALID_SOCKET)
|
||||
{
|
||||
printfPQExpBuffer(&conn->errorMessage,
|
||||
libpq_gettext("socket not open\n"));
|
||||
libpq_gettext("invalid socket\n"));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user