mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-31 12:17:23 +02:00
Up to now, only ECONNRESET (and EPIPE, in most but not quite all places)
received special treatment in our error handling logic. This patch
changes things so that related error codes such as ECONNABORTED are
also recognized as indicating that the connection's dead and unlikely
to come back.
We continue to think, however, that only ECONNRESET and EPIPE should be
reported as probable server crashes; the other cases indicate network
connectivity problems but prove little about the server's state. Thus,
there's no change in the error message texts that are output for such
cases. The key practical effect is that errcode_for_socket_access()
will report ERRCODE_CONNECTION_FAILURE rather than
ERRCODE_INTERNAL_ERROR for a network failure. It's expected that this
will fix buildfarm member lorikeet's failures since commit
|
||
---|---|---|
.. | ||
aix | ||
hpux | ||
tas | ||
win32 | ||
.gitignore | ||
atomics.c | ||
Makefile | ||
posix_sema.c | ||
sysv_sema.c | ||
sysv_shmem.c | ||
win32_sema.c | ||
win32_shmem.c |