diff options
author | robot-contrib <robot-contrib@yandex-team.com> | 2023-08-29 19:36:18 +0300 |
---|---|---|
committer | robot-contrib <robot-contrib@yandex-team.com> | 2023-08-30 01:14:59 +0300 |
commit | a05826a29a408f0c7122d7b5b63ae686bdb53c7e (patch) | |
tree | 8de87c7bec203c098c38f419f8731570d50447db /contrib/libs/postgresql/src/backend/port/win32/socket.c | |
parent | 7563368187b7c65f64abbf2418713fd3ebd51949 (diff) | |
download | ydb-a05826a29a408f0c7122d7b5b63ae686bdb53c7e.tar.gz |
Update contrib/libs/postgresql to 15.1
Diffstat (limited to 'contrib/libs/postgresql/src/backend/port/win32/socket.c')
-rw-r--r-- | contrib/libs/postgresql/src/backend/port/win32/socket.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/contrib/libs/postgresql/src/backend/port/win32/socket.c b/contrib/libs/postgresql/src/backend/port/win32/socket.c index af151e8470..52944a0d33 100644 --- a/contrib/libs/postgresql/src/backend/port/win32/socket.c +++ b/contrib/libs/postgresql/src/backend/port/win32/socket.c @@ -3,7 +3,7 @@ * socket.c * Microsoft Windows Win32 Socket Functions * - * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group + * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group * * IDENTIFICATION * src/backend/port/win32/socket.c @@ -47,8 +47,8 @@ int pgwin32_noblock = 0; * * Note: where there is a direct correspondence between a WSAxxx error code * and a Berkeley error symbol, this mapping is actually a no-op, because - * in win32.h we redefine the network-related Berkeley error symbols to have - * the values of their WSAxxx counterparts. The point of the switch is + * in win32_port.h we redefine the network-related Berkeley error symbols to + * have the values of their WSAxxx counterparts. The point of the switch is * mostly to translate near-miss error codes into something that's sensible * in the Berkeley universe. */ @@ -141,10 +141,15 @@ TranslateSocketError(void) case WSAEDISCON: errno = ENOTCONN; break; + case WSAETIMEDOUT: + errno = ETIMEDOUT; + break; default: ereport(NOTICE, - (errmsg_internal("unrecognized win32 socket error code: %d", WSAGetLastError()))); + (errmsg_internal("unrecognized win32 socket error code: %d", + WSAGetLastError()))); errno = EINVAL; + break; } } |