mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-11 23:08:07 +02:00
Add ETIMEDOUT to ALL_CONNECTION_FAILURE_ERRNOS' list of "errnos that identify hard failure of a previously-established network connection". While one could imagine that this is sometimes recoverable, the same could be said of other entries such as ENETDOWN. In support of this, handle ETIMEDOUT on par with other socket errors in relevant infrastructure, such as TranslateSocketError(). (I made a couple of cosmetic adjustments in TranslateSocketError(), too.) The code now assumes that ETIMEDOUT is defined everywhere, which it should be given that POSIX has required it since SUSv2. Perhaps this should be back-patched, but I'm hesitant to do so given the lack of previous complaints, and the hazard that there's a small ABI break on Windows from redefining the symbol. Even if we decide to do that, it'd be prudent to let this bake awhile in HEAD first. Jelte Fennema Discussion: https://postgr.es/m/AM5PR83MB01782BFF2978505F6D6C559AF7AA9@AM5PR83MB0178.EURPRD83.prod.outlook.com |
||
---|---|---|
.. | ||
aix | ||
hpux | ||
tas | ||
win32 | ||
.gitignore | ||
atomics.c | ||
Makefile | ||
posix_sema.c | ||
sysv_sema.c | ||
sysv_shmem.c | ||
win32_sema.c | ||
win32_shmem.c |